Instance Methodswift-algorithms 1.2.1Algorithms
index(after:)
Chunked.swift:100func index(after i: Index) -> Index
func index(after i: Index) -> Index
s10Algorithms19ChunkedByCollectionV5index5afterAC5IndexVyxq__GAH_tF
What are these?9ODTN
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct ChunkedByCollection<Base, Subject> where Base : Collection
A collection wrapper that breaks a collection into chunks based on a predicate.
struct Index
A position in a chunked 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 }