Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "transforms/scan"

Index

Type aliases

Functions

Type aliases

ScanFunc

ScanFunc<U, T>: function

Type parameters

  • U

  • T

Type declaration

    • (acc: U, v: T): U
    • Parameters

      • acc: U
      • v: T

      Returns U

Functions

scan

  • Reduces the original observable with f, emitting every intermediate result not including the initial value.

    Type parameters

    • U

      Type of result returned from the accumulator.

    • T

      Type of items emitted by the observable.

    Parameters

    • f: ScanFunc<U, T>

      Reduce function called with the accumulated value so far and the current item. Should return a new accumulated value.

    • v0: U

      Initial value.

    Returns Transform<T, U>

    Transform that emits accumulated values produced by f.

Generated using TypeDoc