GenerateUnfoldSequenceT, TState(FuncTState, ValueTupleT, TState, TState) Method |
Generate an infinite sequence generated by the given computation.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static IEnumerable<T> UnfoldSequence<T, TState>(
Func<TState, (T , TState )> f,
TState state
)
Parameters
- f FuncTState, ValueTupleT, TState
- The computation to perform.
- state TState
- The initial state.
Type Parameters
- T
- The type of the generated values.
- TState
- The type of the unfolding state.
Return Value
IEnumerableTThe generated sequence.
See Also