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)
Syntaxpublic IEnumerable<ISequence<T>> Inits()
public IEnumerable<ISequence<T>> Inits()
Public Function Inits As IEnumerable(Of ISequence(Of T))
Public Function Inits As IEnumerable(Of ISequence(Of T))
public:
virtual IEnumerable<ISequence<T>^>^ Inits() sealed
public:
virtual IEnumerable<ISequence<T>^>^ Inits() sealed
abstract Inits : unit -> IEnumerable<ISequence<'T>>
override Inits : unit -> IEnumerable<ISequence<'T>>
abstract Inits : unit -> IEnumerable<ISequence<'T>>
override Inits : unit -> IEnumerable<ISequence<'T>>
Return Value
Type:
IEnumerable ISequence T An iterator over all the inits of this sequence.
Implements
ISequence T Inits
ExamplesSequence.Range(1,4) = (1,2,3), (1,2), (1), Empty
See Also