From: Dave Thomas Date: 2000-07-28T12:44:10-05:00 Subject: [ruby-talk:04258] Re: TABWTDI and Hash.new([]) matz@netlab.co.jp (Yukihiro Matsumoto) writes: > I'm thinking of another way: > > Hash.new{[]} > > This means if the key is not found in the hash, evaluate given block > and returns its value as default. In this example, the block creates > new array for each execution. That's far more general - I like this a lot.