ScanBack2
Applies a function to each pair of elements of the collections, threading an accumulator argument through the computation.
Take the third argument, and apply the function to it and the last pair of elements of the collections. Then feed this result into the function along with the previous pair of elements and so on.
Returns the collection of intermediate results and the final result.
This method is similar to FoldBack2
, but in this case the intermediate results are returned as well.
Parameters
Returns
Func<T, T2, TState, TState> folder
IEnumerable<T> source
IEnumerable<T2> source2
TState state
TState
Usage
Accumulating the bigger value in the same position of these two collections
Last updated
Was this helpful?