 | TallierExtensionsTallyAggregateSelectT, A, R Method (TypeTallyT, FuncT, A, A, A, FuncA, R, FuncA, Boolean) |
Add an aggregate to a tally.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static TypeTally<T, R> TallyAggregateSelect<T, A, R>(
this TypeTally<T> this,
Func<T, A, A> func,
A seed,
Func<A, R> select,
Func<A, bool> break = null
)
Parameters
- this
- Type: WhetStone.LoopingTypeTallyT
The tally to add to. - func
- Type: SystemFuncT, A, A
The aggregate function. - seed
- Type: A
The seed of the aggregate function. - select
- Type: SystemFuncA, R
The selector function to apply to the aggregate result and add to the tally result. - break (Optional)
- Type: SystemFuncA, Boolean
The condition for the aggregated value on which to break, or to never break.
Type Parameters
- T
- The type of the tally.
- A
- The type of the aggregated value.
- R
- The type of the value added to the tally result.
Return Value
Type:
TypeTallyT,
Rthis, to allow piping.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
TypeTallyT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also