Fold2
Applies a function to corresponding elements of two collections, threading an accumulator argument through the computation.
Parameters | Returns |
Func<TState, T, T2, TState> folder TState state IEnumerable<T> source IEnumerable<T2> source2 | TState |
Usage
Accumulating the bigger value in the same position of these two collections
When the type of elements in your collection are: int
, decimal
, double
, string
or bool
you can also use this function combined with the Operations
described in operations section as folder functions.
Using an operation as a folder
Last updated