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

Function combinations

  • combinations<T extends IteratorOrIterable<any>, Size extends number>(
        arg: T,
        size: Size,
        withReplacement?: boolean,
    ): 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 src/combinations.ts:12
  • combinations<T extends IteratorOrIterable<any>, Size extends number>(
        size: Size,
        withReplacement?: boolean,
    ): (arg: T) => IterableIterator<Tuple<IterSource<T>, Size>>

    Returns size length subsequences of the input iterator.

    Type Parameters

    • T extends IteratorOrIterable<any>
    • Size extends number

    Parameters

    • size: Size

      The size of each combination.

    • OptionalwithReplacement: boolean

      Whether or not to allow duplicate elements in the combinations.

    Returns (arg: T) => 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 src/combinations.ts:17

Settings

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

Generated using TypeDoc