
06-07-2009, 03:12 AM
|
|
the fake one
|
 |
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
|
|
array.reverse()
|
or array.flip()
It reverses (or flips) the order of an array. I don't think I need to illustrate this, but I will anyway.
a, d, s, h, r
array.reverse()
r, h, s, d, a
It would also be great to have
array.reverse(start index, end index)
a, d, s, h, r
array.reverse(1, 3)
a, h, s, d, r |
|
|
|