NSequenceUnfold(Int32, Int32, Int32, FuncInt32, Int32, Int32) Method

Creates a sequence by unfolding an initial state by a function.

Definition

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+44e7797405725ef3cf24b3ff0eba94ce6c649601
C#
public static NSequence Unfold(
	int size,
	int first,
	int second,
	Func<int, int, int> unfold
)

Parameters

size  Int32
The size of the sequence.
first  Int32
First value in the sequence.
second  Int32
Second value in the sequence.
unfold  FuncInt32, Int32, Int32
The generating function.

Return Value

NSequence
The sequence unfolded from the initial state and the function.

See Also