On Mon, Jan 25, 2010 at 10:28 PM, Gary Wright <gwtmp01 / mac.com> wrote: > > On Jan 25, 2010, at 2:24 PM, Glen Holcomb wrote: >> >> I'll play around with your solution. ¨Â èáöå ôèæïììï÷éîçº >> >> data = Hash.new { |l, k| l[k] = Hash.new { |l, k| l[k] = Hash.new { |l, k| >> l[k] = Hash.new([]) }}} > > I'm assuming you want 'infinite' depth. ¨Âïîóéäåòº > > default = lambda { |h,k| h[k] = Hash.new(&default) } > top = Hash.new(&default) The problem is that he wants the leaves of the hash to be arrays, and not hashes. Jesus.