Instance Methodswift 6.0.1Swift
index(before:)
func index(before i: Slice<Base>.Index) -> Slice<Base>.Index
func index(before i: Slice<Base>.Index) -> Slice<Base>.Index
where Base:BidirectionalCollection
import Swift
@frozen struct Slice<Base> where Base : Collection
A view into a subsequence of elements of another collection.
protocol BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.
func formIndex(before i: inout Slice<Base>.Index)