Skip to content

Instantly share code, notes, and snippets.

@jtrim
Last active August 29, 2015 14:10
Show Gist options
  • Select an option

  • Save jtrim/534c70f83667e8140b57 to your computer and use it in GitHub Desktop.

Select an option

Save jtrim/534c70f83667e8140b57 to your computer and use it in GitHub Desktop.
def array_reverse(array)
return array if array.empty?
[array.pop] + array_reverse(array)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment