Click or drag to resize

TallierExtensions.TallyLast<T> Method (GenericTally<T>, Func<T, Boolean>, T)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static GenericTally<T> TallyLast<T>(
	this GenericTally<T> this,
	Func<T, bool> cond,
	T initial = null
)

Parameters

this
Type: WhetStone.Looping.GenericTally<T>
The GenericTally< T> to add to.
cond
Type: System.Func<T, Boolean>
The condition for which to count an element.
initial (Optional)
Type: T
The initial result for when an element has not been found.

Type Parameters

T
The type of the GenericTally<T>.

Return Value

Type: GenericTally<T>
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 GenericTally<T>. 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