Function cycle

  • Creates an iterator that cycles through the input iterator's values a certain number of times.

    Type Parameters

    Parameters

    • Optionaltimes: number

      The number of times to cycle through the input iterator's values (default: Infinity).

    Returns (arg: T) => IterableIterator<IterSource<T>>

  • Creates an iterator that cycles through the input iterator's values a certain number of times.

    Type Parameters

    Parameters

    • arg: T

      The input iterator.

    • Optionaltimes: number

      The number of times to cycle through the input iterator's values (default: Infinity).

    Returns IterableIterator<IterSource<T>>