Iterates over the inits of this sequence. The first value will be this sequence, and the last value will be an empty sequence,
with the intervening values the results of successive applications of
Init.
Namespace: SequencesAssembly: Sequences (in Sequences.dll) Version: 1.0.1.0 (1.0.1)
Syntax IEnumerable<ISequence<T>> Inits()
IEnumerable<ISequence<T>> Inits()
Function Inits As IEnumerable(Of ISequence(Of T))
Function Inits As IEnumerable(Of ISequence(Of T))
IEnumerable<ISequence<T>^>^ Inits()
IEnumerable<ISequence<T>^>^ Inits()
abstract Inits : unit -> IEnumerable<ISequence<'T>>
abstract Inits : unit -> IEnumerable<ISequence<'T>>
Return Value
Type:
IEnumerable ISequence T An iterator over all the inits of this sequence.
Examples Sequence.Range(1,4) = (1,2,3), (1,2), (1), Empty
See Also