Click or drag to resize

TallierExtensions.TallyCount<T, T0> Method (TypeTally<T, T0>, Func<T, Boolean>)

Add a count to a tally.

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static TypeTally<T, T0, int> TallyCount<T, T0>(
	this TypeTally<T, T0> this,
	Func<T, bool> cond
)

Parameters

this
Type: WhetStone.Looping.TypeTally<T, T0>
The tally to add to.
cond
Type: System.Func<T, Boolean>
The condition for which to count an element.

Type Parameters

T
The type of the tally.
T0
The first output type of the tally.

Return Value

Type: TypeTally<T, T0, Int32>
this, to allow piping.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TypeTally<T, T0>. 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