Applies an accumulator function over an async-iterable sequence and returns each intermediate result.
The specified seed value, if given, is used as the initial accumulator value.
Type Parameters
T
The type of the elements in the source sequence.
R = T
The type of the result of the aggregation.
Parameters
options: ScanOptions<T, R>
The options including the accumulator function and seed.
Returns OperatorAsyncFunction<T, R>
An async-enumerable sequence containing the accumulated values.
Applies an accumulator function over an async-iterable sequence and returns each intermediate result. The specified seed value, if given, is used as the initial accumulator value.