Function

reverse()

Reverses the elements of self in place.

Source
fun reverse() { inout }

Complexity

O(n), where n is the number of elements in self.