Scan: (<T, R>(acc: Accumulator<R, T>, init: R, stream: Stream<T>) => Stream<R>)

Type declaration

    • <T, R>(acc: Accumulator<R, T>, init: R, stream: Stream<T>): Stream<R>
    • Returns

      a stream resulting from scanning the source stream.

      Type Parameters

      • T

      • R

      Parameters

      • acc: Accumulator<R, T>

        the accumulator function.

      • init: R

        the returned stream's initial value.

      • stream: Stream<T>

        the source stream.

      Returns Stream<R>

Generated using TypeDoc