ArrayExtensions.Reducer<TSum, TElement>


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

TSumThe type of the reduced value.
TElementThe type of elements in the array.

Parameters

sumThe current sum.
elementThe current element being reduced.

Returns

TThe reduced value.