ListExtensions.Reduce<TItem, TSum>
Extension Method in ListExtensions
Declaration
public static TSum Reduce<TItem, TSum>(this List<TItem> list, TSum initialValue, ListExtensions.Reducer<TSum, TItem> reducer)
Description
Reduces the items of the list to a single value.
Type Parameters
TItem | The type of items in the list. |
TSum | The type of the reduced value. |
Parameters
list | The list to reduce. |
initialValue | The initial value to use. |
reducer | The reducer to use. |
Returns
T | The reduced value. |