• Generate all permutations of the given array using Heap's algorithm (with its non-recursive variant).

    Type Parameters

    • T

    Parameters

    • arr: T[]

      The array to permute

    Returns Generator<T[], void, void>

    getUniqueCombinationsOfSize