reverse(a)

Returns a new array with all entries of array a in reverse order.


See also subarray join apply 


Example


a = ( 1, 3, 5 )

1  3  5

reverse( a )

5  3  1