Instance Methodswift-algorithms 1.2.1Algorithms
index(after:)
AdjacentPairs.swift:198func index(after i: Index) -> Index
func index(after i: Index) -> Index
s10Algorithms23AdjacentPairsCollectionV5index5afterAC5IndexVyx_GAH_tF
What are these?5R4RW
where Base:Collection
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct AdjacentPairsCollection<Base> where Base : Collection
A collection of adjacent pairs of elements built from an underlying collection.
struct Index
A position in an AdjacentPairsCollection
instance.
protocol Collection<Element> : Sequence
A sequence whose elements can be traversed multiple times, nondestructively, and accessed by an indexed subscript.
var count: Int { get }
var endIndex: Index { get }
var startIndex: Index { get }
subscript(position: Index) -> (Base.Element, Base.Element) { get }
func distance(from start: Index, to end: Index) -> Int
func index(_ i: Index, offsetBy distance: Int) -> Index
func index(_ i: Index, offsetBy distance: Int, limitedBy limit: Index) -> Index?