[ create a new paste ] login | about

Link: http://codepad.org/QfsbVAup    [ raw code | output | fork ]

Ruby, pasted on Dec 31:
1
2
3
4
5
hash = Hash.new []
hash[:foo] << "bar"

p hash
p hash[:foo]


Output:
1
2
{}
["bar"]


Create a new paste based on this one


Comments: