---
title: ReversedCollection
framework: swift
role: symbol
role_heading: Structure
path: swift/reversedcollection
---

# ReversedCollection

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

## Declaration

```swift
@frozen struct ReversedCollection<Base> where Base : BidirectionalCollection
```

## Overview

Overview note: This type is the result of x.reversed() where x is a collection having bidirectional indices. 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

## Topics

### Instance Methods

- [reversed()](swift/reversedcollection/reversed().md)

### Default Implementations

- [BidirectionalCollection Implementations](swift/reversedcollection/bidirectionalcollection-implementations.md)
- [Collection Implementations](swift/reversedcollection/collection-implementations.md)
- [LazySequenceProtocol Implementations](swift/reversedcollection/lazysequenceprotocol-implementations.md)
- [Sequence Implementations](swift/reversedcollection/sequence-implementations.md)

## Relationships

### Conforms To

- [BidirectionalCollection](swift/bidirectionalcollection.md)
- [Collection](swift/collection.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [LazySequenceProtocol](swift/lazysequenceprotocol.md)
- [RandomAccessCollection](swift/randomaccesscollection.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Sequence](swift/sequence.md)

## See Also

### Wrappers for Algorithms

- [CollectionDifference](swift/collectiondifference.md)
- [DropFirstSequence](swift/dropfirstsequence.md)
- [DropWhileSequence](swift/dropwhilesequence.md)
- [EnumeratedSequence](swift/enumeratedsequence.md)
- [FlattenCollection](swift/flattencollection.md)
- [FlattenSequence](swift/flattensequence.md)
- [JoinedSequence](swift/joinedsequence.md)
- [PrefixSequence](swift/prefixsequence.md)
- [Repeated](swift/repeated.md)
- [StrideTo](swift/strideto.md)
- [StrideThrough](swift/stridethrough.md)
- [UnfoldSequence](swift/unfoldsequence.md)
- [Zip2Sequence](swift/zip2sequence.md)
