 | TallierExtensionsTallyAggregateSelectT, T0, T1, T2, T3, T4, A, R Method (TypeTallyT, T0, T1, T2, T3, T4, 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 GenericTally<T> TallyAggregateSelect<T, T0, T1, T2, T3, T4, A, R>(
this TypeTally<T, T0, T1, T2, T3, T4> this,
Func<T, A, A> func,
A seed,
Func<A, R> select,
Func<A, bool> break = null
)
Parameters
- this
- Type: WhetStone.LoopingTypeTallyT, T0, T1, T2, T3, T4
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.
- T0
- The first return type of the tally.
- T1
- The second return type of the tally.
- T2
- The third return type of the tally.
- T3
- The fourth return type of the tally.
- T4
- The fifth return 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:
GenericTallyTthis, 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,
T0,
T1,
T2,
T3,
T4. 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