Skip to content

Instantly share code, notes, and snippets.

@franciscoj
Created February 12, 2020 07:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save franciscoj/63004b5eb919e9ef018a0954d07ea622 to your computer and use it in GitHub Desktop.
Save franciscoj/63004b5eb919e9ef018a0954d07ea622 to your computer and use it in GitHub Desktop.
irb(main):001:0> h = Hash.new([])
=> {}
irb(main):002:0> h[:hello] << :fran
=> [:fran]
irb(main):003:0> h[:hallo] << :andreas
=> [:fran, :andreas]
irb(main):004:0> h
=> {}
irb(main):005:0> h[:asdf]
=> [:fran, :andreas]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment