Type alias Accumulator<R, T>

Accumulator<R, T>: ((result: R, next: T) => R)

Type Parameters

  • R

    the type of the result value.

  • T

    the type of the source value.

Type declaration

    • (result: R, next: T): R
    • Returns

      the accumulated result value.

      Parameters

      • result: R

        the current accumulated result value.

      • next: T

        the next source value.

      Returns R

Generated using TypeDoc