Scan<T> extension
A utility similar to fold which emits intermediate accumulations.
Methods
-
scan<S>(S initialValue, FutureOr<S> combine(S soFar, T element))
→ Stream<S>
-
Available on Stream<T>,
provided by the Scan extension
Emits a sequence of the accumulated values from repeatedly applying
combine
.