Skip to content

Instantly share code, notes, and snippets.

View qxjit's full-sized avatar

David Vollbracht qxjit

  • Flipstone Technology Partners, Inc
View GitHub Profile
@qxjit
qxjit / foo.rb
Created March 6, 2012 16:22 — forked from jbrechtel/foo.rb
foo
def foo(nums)
h = Hash.new([])
nums.each { |n| h[n] << n }
puts h.inspect
puts h['foo']
end
#YETANOTHERREASONMUTABLESTATEISTERRIBLE