iter-fns - v0.13.0
    Preparing search index...

    Type Alias Pipe<It>

    Pipe: {
        then<OutputIt extends Iterable<unknown>>(
            f: (iterable: It) => OutputIt,
        ): Pipe<OutputIt>;
        then<T>(f: (iterable: It) => T): T;
    } & It & (
        It extends ReverseIterable<infer T> ? ReverseIterable<T> : unknown
    ) & (It extends SizedIterable<infer T> ? SizedIterable<T> : unknown)

    Type for pipes.

    You can construct a pipe using pipe.

    Type Parameters

    Type declaration

    • then: function
      • Applies an iterable-returning function to the iterable, which will continue the pipe.

        Type Parameters

        Parameters

        • f: (iterable: It) => OutputIt

          the next function to apply

        Returns Pipe<OutputIt>

      • Applies a terminal function to the iterable, ending the pipe.

        Type Parameters

        • T

        Parameters

        • f: (iterable: It) => T

          the next function to apply

        Returns T