Instance Methodswift-algorithms 1.2.1Algorithms
index(before:)
AdjacentPairs.swift:288func index(before i: Index) -> Index
func index(before i: Index) -> Index
s10Algorithms23AdjacentPairsCollectionVAASKRzrlE5index6beforeAC5IndexVyx_GAH_tF
What are these?8VRPZ
where Base:BidirectionalCollection
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 BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.