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/.