• Preparing search index...
  • The search index is not available
iteragain - v4.1.5
  • iteragain
  • combinations
  • combinations

Function combinations

  • combinations<T, Size>(arg, size, withReplacement?): IterableIterator<Tuple<IterSource<T>, Size>>
  • Returns size length subsequences of the input iterator.

    Type Parameters

    • T extends IteratorOrIterable<any>
    • Size extends number

    Parameters

    • arg: T
    • size: Size

      The size of each combination.

    • OptionalwithReplacement: boolean

      Whether or not to allow duplicate elements in the combinations.

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

    See

    • https://docs.python.org/3/library/itertools.html#itertools.combinations for more info.
    • https://docs.python.org/3/library/itertools.html#itertools.combinations_with_replacement for more info.
    • Defined in combinations.ts:12
  • combinations<T, Size>(size, withReplacement?): ((arg: T) => IterableIterator<Tuple<IterSource<T>, Size>>)
  • Type Parameters

    • T extends IteratorOrIterable<any>
    • Size extends number

    Parameters

    • size: Size
    • OptionalwithReplacement: boolean

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

      • (arg): IterableIterator<Tuple<IterSource<T>, Size>>
      • Parameters

        • arg: T

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

    • Defined in combinations.ts:17

Settings

Member Visibility
iteragain - v4.1.5
  • Loading...

Generated using TypeDoc