 | TallierExtensionsTallyAggregateT, R Method (GenericTallyT, FuncT, R, R, R, FuncR, Boolean, Boolean) |
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic static GenericTally<T> TallyAggregate<T, R>(
this GenericTally<T> this,
Func<T, R, R> func,
R seed = null,
Func<R, bool> break = null,
bool append = true
)
Parameters
- this
- Type: WhetStone.LoopingGenericTallyT
The GenericTallyT to add to. - func
- Type: SystemFuncT, R, R
The aggregate function. - seed (Optional)
- Type: R
The seed of the aggregate function. - break (Optional)
- Type: SystemFuncR, Boolean
The condition for the aggregated value on which to break, or to never break. - append (Optional)
- Type: SystemBoolean
Whether to add the aggregate result to the tally result.
Type Parameters
- T
- The type of the GenericTallyT.
- R
- The type of the aggregated value.
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
GenericTallyT. 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