Home Manual Reference Source

References

summary
private

F * _permutations(n: number, k: number): IterableIterator<IterableIterator<number>>

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

public

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

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