I want to have a hash whose key is a string and the value is an array. I tried it the following way:
h = Hash.new([]) # => {}
h["one"] # => []
h["two"] # => []
h["one"].push 1 # => [1]
h["one"] # => [1]
h["two"] # => [1] //why did it assign it to h["two"] also??
What is the correct way to do it?