Type Aliasswift 6.1.2Swift
SubSequence
typealias SubSequence = Slice<LazySequence<Base>>typealias SubSequence = Slice<LazySequence<Base>>where Base:Collectionimport Swift@frozen struct LazySequence<Base> where Base : SequenceA sequence containing the same elements as a Base sequence, but on which some operations such as map and filter are implemented lazily.
@frozen struct Slice<Base> where Base : CollectionA view into a subsequence of elements of another collection.
protocol Collection<Element> : SequenceA sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var count: Int { get }Returns the number of elements.
var endIndex: LazySequence<Base>.Index { get }The collection’s “past the end” position—that is, the position one greater than the last valid subscript argument.
var indices: LazySequence<Base>.Indices { get }var isEmpty: Bool { get }A Boolean value indicating whether the collection is empty.
var startIndex: LazySequence<Base>.Index { get }The position of the first element in a non-empty collection.
subscript(position: LazySequence<Base>.Index) -> LazySequence<Base>.Element { get } Accesses the element at position.
func distance(from start: LazySequence<Base>.Index, to end: LazySequence<Base>.Index) -> Int func index(_ i: LazySequence<Base>.Index, offsetBy n: Int) -> LazySequence<Base>.Index func index(_ i: LazySequence<Base>.Index, offsetBy n: Int, limitedBy limit: LazySequence<Base>.Index) -> LazySequence<Base>.Index? func index(after i: LazySequence<Base>.Index) -> LazySequence<Base>.Index typealias Index = Base.IndexA type that represents a valid position in the collection.
typealias Indices = Base.Indices