Joel VanderWerf <vjoel / path.berkeley.edu> wrote:
> 
> hash_maker = proc do |h, k|
>   h[k] = Hash.new(&hash_maker)
> end
> 
> h = Hash.new(&hash_maker)
> 
> h[1][2][3][4][5] = 6
> 
> p h   # {1=>{2=>{3=>{4=>{5=>6}}}}}

My head hurts :) That needs to go on the Ruby Idioms page.

martin