types.Array.reverse
Method on every
arrayReverses the array in place.
Return value
This array.
Example
let a = [1, 2, 3];
let same = a.reverse();
println("same == a:", same == a); // returns this array, reversed in place
println("a =", ", ".join(a.map(@(v) v.tostring())));Output:
same == a: true
a = 3, 2, 1See also
sort | Sorts the array in place. |
| array | class index |