iterate
Callable
Type parameters
- T
The element type.
Parameters
x: T
The initial value to start iterating with.
f: (x: T, i: number) => T
The lambda that will be used to iterate with.
Returns Traversable<T>
The iterate generator.
- T
The element type.
The initial value to start iterating with.
The lambda that will be used to iterate with.
The iterate generator.
Creates a stateful generator that iterates over a predicates output given an initial value.
Example