Click or drag to resize

yieldAggregateYieldAggregateT Method (FuncT, T, T)

Namespace:  WhetStone.Looping
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public static IEnumerable<T> YieldAggregate<T>(
	Func<T, T> aggregator,
	T seed = null
)

Parameters

aggregator
Type: SystemFuncT, T
the aggregator function.
seed (Optional)
Type: T
The initial element in the output.

Type Parameters

T
The type of aggregated elements.

Return Value

Type: IEnumerableT
An infinite IEnumerableT, starting with seed, and every element is the product of aggregator and the previous element.
See Also