Instance Propertyswift 6.0.3Swift
startIndex
The position of the first element in a non-empty collection.
var startIndex: FlattenSequence<Base>.Index { get }
In an empty collection, startIndex == endIndex
.
The position of the first element in a non-empty collection.
var startIndex: FlattenSequence<Base>.Index { get }
ss15FlattenSequenceVsSlRzSl7ElementRpzrlE10startIndexABsSlRzSlADRQrlE0E0Vyx_Gvp
What are these?660AN
where Base:Collection, Base.Element:Collection
In an empty collection, startIndex == endIndex
.
import Swift
@frozen struct FlattenSequence<Base> where Base : Sequence, Base.Element : Sequence
A sequence consisting of all the elements contained in each segment contained in some Base
sequence.
@frozen struct Index
A position in a FlattenCollection
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var endIndex: FlattenSequence<Base>.Index { get }
The collection’s “past the end” position.
subscript(position: FlattenSequence<Base>.Index) -> Base.Element.Element { get }
Accesses the element at position
.
subscript(bounds: Range<FlattenSequence<Base>.Index>) -> Slice<FlattenCollection<Base>> { get }
func distance(from start: FlattenSequence<Base>.Index, to end: FlattenSequence<Base>.Index) -> Int
func formIndex(_ i: inout FlattenSequence<Base>.Index, offsetBy n: Int)
func formIndex(_ i: inout FlattenSequence<Base>.Index, offsetBy n: Int, limitedBy limit: FlattenSequence<Base>.Index) -> Bool
func formIndex(after i: inout FlattenSequence<Base>.Index)
func index(_ i: FlattenSequence<Base>.Index, offsetBy n: Int) -> FlattenSequence<Base>.Index
func index(_ i: FlattenSequence<Base>.Index, offsetBy n: Int, limitedBy limit: FlattenSequence<Base>.Index) -> FlattenSequence<Base>.Index?
func index(after i: FlattenSequence<Base>.Index) -> FlattenSequence<Base>.Index