I have a coding challenge to reverse a an array with 5 elements in it. How would I do this without using the reverse method?
Code:
def reverse(array) a
def reverse(array) array.values_at(*((array.size-1).downto 0)) end