From: Mike Fletcher Date: 2006-01-26T23:00:34+09:00 Subject: Re: Hash with array as value type Mike Fletcher wrote: [...] > hash1 = Hash.new { |h,k| Array.new } > > That'll make a new Array instance each time it needs a new default value > for a new key. GAH, that should be hash1 = Hash.new { | h, k | h[k] = Array.new } MEMO TO SELF: Don't post in the mornings before caffeine has chance to take effect. -- Posted via http://www.ruby-forum.com/.