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. |
Type Parameters
- T
- The type of the sequence.
- U
- The return type.
Return Value
The value computed from the sequence.
See Also