Instance Methodswift 6.0.3Swift

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.

The sequence must be finite.