Prelude API
    Preparing search index...

    Function yield

    • Creates a generator that yields a single value.

      Type Parameters

      • T

        Type of the value to yield

      Parameters

      • value: T

        The value to yield

      Returns Generator<T>

      The provided value

      const result = G.pipe(
      G.yield_(42),
      G.array
      );
      // => [42]