NSequenceUnfold(Int32, Int32, FuncInt32, Int32, Int32) Method |
Creates a sequence by unfolding an initial state by a function.
Namespace: Austra.LibraryAssembly: Austra.Library (in Austra.Library.dll) Version: 2.7.0+b25929339ea1019e260029cf0ebd18b3a0ce2443
Syntaxpublic static NSequence Unfold(
int size,
int seed,
Func<int, int, int> unfold
)
Parameters
- size Int32
- The size of the sequence.
- seed Int32
- First value in the sequence.
- unfold FuncInt32, Int32, Int32
- The generating function.
Return Value
NSequenceThe sequence unfolded from the initial state and the function.
See Also