Skip to content

Instantly share code, notes, and snippets.

@seanstickle
Forked from ryanjosephking/gist:2623413
Created May 6, 2012 17:38
Show Gist options
  • Save seanstickle/2623446 to your computer and use it in GitHub Desktop.
Save seanstickle/2623446 to your computer and use it in GitHub Desktop.
#!/bin/env ruby
def broken
people = Hash.new([])
people['a'] = [1]
people['b'] = [2]
p people
end
broken
# only prints: {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment