Reduce
Apply the reduction
function to each element of the collection, threading an accumulator argument through the computation.
Apply the function to the first two elements of the collection.
Parameters
Returns
Func<T, T, T> reduction
IEnumerable<T> source
TState
Usage
Accumulating a sum of each element in a collection
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
Was this helpful?