Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created September 2, 2008 21:21
Show Gist options
  • Save vangberg/8468 to your computer and use it in GitHub Desktop.
Save vangberg/8468 to your computer and use it in GitHub Desktop.
h = {:a => [1,2,3], :b => [1,2,3]}
h.each do |k,v|
v.shift
v.each do |n|
p n
end
end
=> {:a=>[2, 3], :b=>[2, 3]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment