 | yieldAggregateYieldAggregateT Method (FuncT, T, T) |
Get an infinite
IEnumerableT, each element an aggregate of the previous element.
Namespace:
WhetStone.Looping
Assembly:
WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntaxpublic 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:
IEnumerableTAn infinite
IEnumerableT, starting with
seed, and every element is the product of
aggregator and the previous element.
See Also