ScanExtension<T> extension

Extends

on

Methods

scan<S>(S accumulator(S accumulated, T value, int index), S seed) Stream<S>

Available on Stream<T>, provided by the ScanExtension extension

Applies an accumulator function over a Stream sequence and returns each intermediate result. The seed value is used as the initial accumulator value.