public final class OperatorScan<R,T> extends Objectimplements Observable .Operator <R ,T>
This sort of function is sometimes called an accumulator.
Note that when you pass a seed to scan the resulting Observable will emit that seed as its first emitted item.
| Constructor and Description |
|---|
OperatorScan(Func0
|
OperatorScan(Func2
Applies an accumulator function over an observable sequence and returns each intermediate result with the specified source and accumulator.
|
OperatorScan(R initialValue, Func2
Applies an accumulator function over an observable sequence and returns each intermediate result with the specified source and accumulator.
|
public OperatorScan(R initialValue, Func2<R ,? super T ,R> accumulator)
initialValue - the initial (seed) accumulator value
accumulator - an accumulator function to be invoked on each element from the sequence
public OperatorScan(Func2<R ,? super T ,R> accumulator)
accumulator - an accumulator function to be invoked on each element from the sequence
public Subscriber<? super T> call(Subscriber <? super R> child)