From: ara.t.howard@... Date: 2006-12-07T23:44:13+09:00 Subject: Re: [GOLF]: partitioning an array On Thu, 7 Dec 2006, Martin DeMello wrote: > On 12/7/06, Robert Klemme 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