Swaps elements of argument array so they all come in reverse order
array slice to reverse in-place
slice of the argument
test (reverse((int[]).init) == (int[]).init); test (reverse([1, 2, 3]) == [3, 2, 1]); test (reverse([1, 2, 3, 4]) == [4, 3, 2, 1]);
See Implementation
Swaps elements of argument array so they all come in reverse order