Prelude API
    Preparing search index...

    Function prepend

    • Creates a generator that yields values from prependValues followed by values from the input iterable.

      Type Parameters

      • T

        Type of values in the input iterable

      • U

        Type of values to prepend

      Parameters

      • prependValues: Iterable<U>

        The values to yield before the input values

      Returns (values: Iterable<T>) => Generator<T | U>

      A function that takes an iterable and yields a new generator with prepended values

      Values from prependValues followed by values from the input iterable

      G.pipe(
      [3, 4, 5],
      G.prepend([1, 2]),
      G.array
      ) // [1, 2, 3, 4, 5]