Reduce
Last updated
Was this helpful?
Last updated
Was this helpful?
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
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 as folder functions.
Using an operation as a folder