ArrayExtensions.Reducer<TSum, TElement>
Delegate in Zigurous.Architecture
Declaration
public delegate TSum Reducer<TSum, TElement>(TSum sum, TElement element);
Description
A function delegate that reduces an array into a single value.
Type Parameters
TSum | The type of the reduced value. |
TElement | The type of elements in the array. |
Parameters
sum | The current sum. |
element | The current element being reduced. |
Returns
T | The reduced value. |