View difference between Paste ID: SFxLB2e9 and d6YXfRNN
SHOW: | | - or go back to the newest paste.
1
>> h1 = Hash.new("Foo")
2
=> {}
3
>> h1[2]
4
=> "Foo"
5
>> h1[1000]
6
=> "Foo"
7
>>