Instance Subscriptswift-algorithms 1.2.1Algorithms
subscript(_:)
Split.swift:546subscript(position: Index) -> Base.SubSequence { get }
subscript(position: Index) -> Base.SubSequence { get }
s10Algorithms15SplitCollectionVy11SubSequenceQzAC5IndexVyx_Gcip
What are these?4YQ8U
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct SplitCollection<Base> where Base : Collection
A collection that lazily splits a base collection into subsequences separated by elements that satisfy the given whereSeparator
predicate.
struct Index
Position of a subsequence in a split collection.
associatedtype SubSequence : Collection = Slice<Self> where Self.Element == Self.SubSequence.Element, Self.SubSequence == Self.SubSequence.SubSequence
A collection representing a contiguous subrange of this collection’s elements. The subsequence shares indices with the original collection.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var endIndex: Index { get }
var startIndex: Index { get }
func index(after i: Index) -> Index