A fold over a sequence.

Namespace:  Sasa.Collections
Assembly:  Sasa (in Sasa.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Aggregate(Of T, U) ( _
	seq As Seq(Of T), _
	seed As U, _
	func As Func(Of T, U, U) _
) As U
C#
public static U Aggregate<T, U>(
	Seq<T> seq,
	U seed,
	Func<T, U, U> func
)
Visual C++
public:
generic<typename T, typename U>
static U Aggregate(
	Seq<T>^ seq, 
	U seed, 
	Func<T, U, U>^ func
)
JavaScript
JavaScript does not support generic types or methods.

Parameters

seq
Type: Sasa.Collections..::.Seq<(Of <(T>)>)
The sequence.
seed
Type: U
The seed value.
func
Type: System..::.Func<(Of <(T, U, U>)>)
The function transforming the sequence.

Type Parameters

T
The type of the sequence.
U
The return type.

Return Value

The value computed from the sequence.

See Also