Skip to content

Instantly share code, notes, and snippets.

@techsin
Created July 27, 2015 15:29
Show Gist options
  • Save techsin/ab1e974031d18e6ccfd3 to your computer and use it in GitHub Desktop.
Save techsin/ab1e974031d18e6ccfd3 to your computer and use it in GitHub Desktop.
arr = [1,2,3,4]
l = arr.length -1
while l<0 do
puts arr[l]
l = l-1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment