Instance Propertyswift 6.0.3Swift
endIndex
var endIndex: ReversedCollection<Base>.Index { get }
var endIndex: ReversedCollection<Base>.Index { get }
where Base:BidirectionalCollection
import Swift
@frozen struct ReversedCollection<Base> where Base : BidirectionalCollection
A collection that presents the elements of its base collection in reverse order.
@frozen struct Index
An index that traverses the same positions as an underlying index, with inverted traversal direction.
protocol BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.
var startIndex: ReversedCollection<Base>.Index { get }
subscript(position: ReversedCollection<Base>.Index) -> ReversedCollection<Base>.Element { get }
func distance(from start: ReversedCollection<Base>.Index, to end: ReversedCollection<Base>.Index) -> Int
func index(_ i: ReversedCollection<Base>.Index, offsetBy n: Int) -> ReversedCollection<Base>.Index
func index(_ i: ReversedCollection<Base>.Index, offsetBy n: Int, limitedBy limit: ReversedCollection<Base>.Index) -> ReversedCollection<Base>.Index?
func index(after i: ReversedCollection<Base>.Index) -> ReversedCollection<Base>.Index
func index(before i: ReversedCollection<Base>.Index) -> ReversedCollection<Base>.Index
func makeIterator() -> ReversedCollection<Base>.Iterator
func reversed() -> Base
Reversing a reversed collection returns the original collection.
@frozen struct Iterator
typealias Element = Base.Element
A type that represents a valid position in the collection.