T
Traz
Hello all,
I want to use some hash who have a hash key. But, i don't understand
the hash key behaviour :
So, why i can't access to the hash with a hash key ???
I want to use some hash who have a hash key. But, i don't understand
the hash key behaviour :
=> "ok"a={} => {}
a[{1,2}]='ok' => "ok"
a[{1,2}] => nil
a.keys => [{1=>2}]
a.keys[0] == {1,2} => true
a.keys[0].eql?({1,2}) => false
a[a.keys[0]]
So, why i can't access to the hash with a hash key ???