StructureSwift5.9.0

    ReversedCollection

    A collection that presents the elements of its base collection in reverse order.

    @frozen struct ReversedCollection<Base> where Base : BidirectionalCollection

    The reversed() method is always lazy when applied to a collection with bidirectional indices, but does not implicitly confer laziness on algorithms applied to its result. In other words, for ordinary collections c having bidirectional indices:

    • c.reversed() does not create new storage

    • c.reversed().map(f) maps eagerly and returns a new array

    • c.lazy.reversed().map(f) maps lazily and returns a LazyMapCollection

    Citizens in Swift

    where Base:BidirectionalCollection

    Conformances

    Members

    Features

    Citizens in Swift

    where Base:BidirectionalCollection, Base:LazySequenceProtocol

    Conformances

    Features

    Citizens in Swift

    where Base:RandomAccessCollection

    Conformances