Instance Methodswift-algorithms 1.2.1Algorithms
index(before:)
Compacted.swift:126func index(before i: Index) -> Index
func index(before i: Index) -> Index
s10Algorithms19CompactedCollectionVAASKRzrlE5index6beforeAC5IndexVyxq__GAH_tF
What are these?6KEBJ
where Base:BidirectionalCollection, Base.Element == Element?
import Algorithms
Swift Algorithms is an open-source package of sequence and collection algorithms, along with their related types.
struct CompactedCollection<Base, Element> where Base : Collection, Base.Element == Element?
A Collection
that iterates over every non-nil element from the original Collection
.
struct Index
protocol BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.
@frozen enum Optional<Wrapped> where Wrapped : ~Copyable
A type that represents either a wrapped value or the absence of a value.