A call chain transforming elements of iterable.

Transformations performed when transformed element requested from final iterable.

Hierarchy

  • CallChain
    • IterableCallChain

Methods

Methods

  • Calls a pass in this chain with the given arguments.

    When this is called for the last pass, the final result would be an args tuple.

    Type Parameters

    • TArgs extends any[]

      Pass arguments tuple type.

    Parameters

    • pass: ((this, ...args) => any)

      A pass to call.

        • (this, ...args): any
        • Parameters

          • this: void
          • Rest ...args: TArgs

          Returns any

    • args: TArgs

      An array of arguments for the call.

    Returns void

  • Calls a pass in this chain with each element of the given iterable.

    Type Parameters

    • T

      Iterated elements type.

    Parameters

    • pass: ((this, arg) => any)

      A pass to call.

        • (this, arg): any
        • Parameters

          • this: void
          • arg: T

          Returns any

    • iterable: Iterable<T>

      Source iterable.

    Returns void

  • Calls a pass in this chain with the given argument.

    When this is called for the last pass, the final result would be arg.

    Type Parameters

    • TArg

    Parameters

    • pass: ((this, arg) => any)

      A pass to call.

        • (this, arg): any
        • Parameters

          • this: void
          • arg: TArg

          Returns any

    • arg: TArg

      Single argument for the call.

    Returns void

  • Skips the rest of the passes.

    Parameters

    • Optional result: unknown

      Call chain result.

    Returns void

Generated using TypeDoc