Skip to content

Instantly share code, notes, and snippets.

@banyan
Created January 8, 2010 09:52
Show Gist options
  • Select an option

  • Save banyan/271949 to your computer and use it in GitHub Desktop.

Select an option

Save banyan/271949 to your computer and use it in GitHub Desktop.
buf = [0, 1, 2, 3, 4, 5, 6, 7]
buf.each do | n |
p n / 2
end
#0
#0
#1
#1
#2
#2
#3
#3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment