@extra-array/permutations
Version:
Lists all possible permutations.
10 lines (9 loc) • 295 B
TypeScript
declare module "@extra-array/permutations" {
/**
* Lists all possible permutations.
* @param x an array
* @param n number of values (-1 => any)
*/
declare function permutations<T>(x: T[], n?: number): IterableIterator<T[]>;
export = permutations;
//# sourceMappingURL=permutations.d.ts.map}