UNPKG

@zsnout/ithkuil

Version:

A set of tools which can generate and parse romanized Ithkuil text and which can generate Ithkuil script from text and JSON data.

15 lines (14 loc) 572 B
/** * Calculates all possible permutations of an input array. * * @param array The array to calculate permutations of. * @returns An array containing all possible permutations of the input array. */ export declare function allPermutationsOf<T>(array: readonly [T, ...T[]]): [T, ...T[]][]; /** * Calculates all possible permutations of an input array. * * @param array The array to calculate permutations of. * @returns An array containing all possible permutations of the input array. */ export declare function allPermutationsOf<T>(array: readonly T[]): T[][];