induce
Creates a finite KoneSequence by induction: starting from initialElement, each subsequent element is produced by applying inducer to the previous element.
I.e. it's a (lazily evaluated) sequence of elements (e0, e1, e2, ...) where e0 = initialElement, e1 = inducer(1u, e0), e2 = inducer(2u, e1), and so on.
Return
A new KoneSequence instance.
Parameters
The number of elements in the sequence.
The first element of the sequence.
The function that produces the next element given the next index and previous element.
Type Parameters
The type of elements.
Creates a KoneSequence by induction over the given indices range: starting from initialElement, each subsequent element is produced by applying inducer to the previous element.
I.e. it's a (lazily evaluated) sequence of elements (e0, e1, e2, ...) where e0 = initialElement, e1 = inducer(indices.start, e0), e2 = inducer(indices.start + 1u, e1), and so on.
Return
A new KoneSequence instance.
Parameters
The range of indices to induce elements for.
The first element of the sequence.
The function that produces the next element given the index and previous element.
Type Parameters
The type of elements.
Creates an infinite KoneSequence by induction: starting from initialElement, each subsequent element is produced by applying inducer to the previous element.
I.e. it's a (lazily evaluated) sequence of elements (e0, e1, e2, ...) where e0 = initialElement, e1 = inducer(1u, e0), e2 = inducer(2u, e1), and so on.
Return
An infinite KoneSequence instance.
Parameters
The first element of the sequence.
The function that produces the next element given the index and previous element.
Type Parameters
The type of elements.