Creates a generator that yields all possible permutations of k elements from the source iterable.
Permutations are returned as new arrays (safe copies).
Type Parameters
T
Parameters
Optionalk: number
Optional number of elements to use in each permutation. If not provided, all elements are used.
Creates a generator that yields all possible permutations of k elements from the source iterable. Permutations are returned as new arrays (safe copies).