Instance MethodSwift

reversed()

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

func reversed() -> [Self.Element]

Returns

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

Overview

The sequence must be finite.