---
title: reversed()
framework: swift
role: symbol
role_heading: Instance Method
path: swift/lazydropwhilesequence/reversed()
---

# reversed()

Returns an array containing the elements of this sequence in reverse order.

## Declaration

```swift
func reversed() -> [Self.Element]
```

## Return Value

Return Value An array containing the elements of this sequence in reverse order.

## Discussion

Discussion The sequence must be finite. note: O(n), where n is the length of the sequence.
