On Thu, 7 Dec 2006, Martin DeMello wrote:

> On 12/7/06, Robert Klemme <shortcutter / googlemail.com> wrote:
>> Hash.new {|h,k| h[k]=[]}
>
> This is common enough that it deserves to be its own constructor, imo
> - Hash.multi perhaps

my own lib has

   def Hash.list list_class = Array, *a, &b
     Hash.new {|h,k| h[k] = list_class.new(*a, &b)}
   end


-a
-- 
if you want others to be happy, practice compassion.
if you want to be happy, practice compassion.  -- the dalai lama