Instance Methodswift-algorithms 1.2.1Algorithms
index(after:)
Split.swift:509func index(after i: Index) -> Index
func index(after i: Index) -> Index
s10Algorithms15SplitCollectionV5index5afterAC5IndexVyx_GAH_tF
What are these?1GJPO
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.
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 }
subscript(position: Index) -> Base.SubSequence { get }