public native reverse() as Void
Reverses list elements in-place.
data = ls:[1, 2, 3] data.reverse() print(data) # ls:[3, 2, 1]