• Applies an accumulator function over an async-iterable sequence from the right and returns each intermediate result. The specified seed value, if given, is used as the initial accumulator value.

    Type Parameters

    • T

      The type of the elements in the source sequence.

    • R = T

      The type of the result of the aggregation.

    Parameters

    • options: ScanOptions<T, R>

      The options including the accumulator function and seed.

    Returns OperatorFunction<T, R>

    An async-enumerable sequence containing the accumulated values from the right.

  • Type Parameters

    • T

    • R = T

    Parameters

    • accumulator: ((accumulator, current, index) => R)
        • (accumulator, current, index): R
        • Parameters

          • accumulator: R
          • current: T
          • index: number

          Returns R

    • Optional seed: R

    Returns OperatorFunction<T, R>

Generated using TypeDoc