Skip to content

Instantly share code, notes, and snippets.

@zackham
Created November 24, 2011 01:25
Show Gist options
  • Save zackham/1390429 to your computer and use it in GitHub Desktop.
Save zackham/1390429 to your computer and use it in GitHub Desktop.
[[1,2],[3,4]].each do |(a,b)|
puts "a: #{a}, b: #{b}"
end
output:
a: 1, b: 2
a: 3, b: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment