lazy = lambda { |h,k| h[k] = Hash.new(&lazy;) } h = Hash.new(&lazy;) h[1][2][3][4] = 5
Add a code snippet to your website: www.paste.org