fold<R> method

Observable<R> fold<R>(
  1. R initialValue,
  2. Map2<R, T, R> transform
)

Combines a sequence of values by repeatedly applying transform, starting with the provided initialValue.

Implementation

Observable<R> fold<R>(R initialValue, Map2<R, T, R> transform) =>
    FoldObservable<T, R>(this, transform, initialValue);