ts-iterable-functions
    Preparing search index...

    Function repeatGenerate

    • Creates an iterable by calling a generator function a specified number of times.

      Type Parameters

      • T

        The type of the generated items.

      Parameters

      • generator: (i: number) => T

        The function to generate each item.

      • numRepeats: number

        The number of times to call the generator.

      Returns Iterable<T>

      An iterable of generated items.