Home Manual Reference Source

References

summary
private

F * _combinations(n: number, k: number): IterableIterator<number[]>

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

public

F combinations(iterable: Iterable, r: number): IterableIterator<Array>

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