• Returns all successive size length permutations of the input iterator. The permutations are emitted in lexicographic ordering according to input. So if input is sorted, the permutations will be in sorted order. Elements in the permutations are treated as unique based on their position in the iterator, not on their value. So if the input iterator is unique, then there will be no repeat values.

    Type Parameters

    Parameters

    • size: Size

      The size of each permutation, must be greater than 0 and less than or equal to the length of the input

    Returns (arg: T) => IterableIterator<Tuple<IterSource<T>, Size>>

  • Returns all successive size length permutations of the input iterator. The permutations are emitted in lexicographic ordering according to input. So if input is sorted, the permutations will be in sorted order. Elements in the permutations are treated as unique based on their position in the iterator, not on their value. So if the input iterator is unique, then there will be no repeat values.

    Type Parameters

    Parameters

    • arg: T

      The input iterator.

    • size: Size

      The size of each permutation, must be greater than 0 and less than or equal to the length of the input

    Returns IterableIterator<Tuple<IterSource<T>, Size>>