Home Manual Reference Source

References

summary
public

F * multicombinations(n: number, r: number): IterableIterator<number[]>

Yields all k-multicombinations of {0, 1, ..., n-1}.

public

F multicombinations(iterable: Iterable, r: number): IterableIterator

Yields all combinations, with repetitions, of each possible choice of r elements of the input iterable.