From: Joel VanderWerf Date: 2007-10-31T06:40:02+09:00 Subject: Re: better way to accumulate totals ara.t.howard wrote: > count = Hash.new{|h,k| h.update k => Hash.new{|h,k| h.update k => 0}} This works... count = Hash.new{|h,k| h[k] = Hash.new{|h1,k1| h1[k1] = 0}} => {} count[:foo][1] += 1 => 1 count[:foo][1] += 1 => 2 count[:foo][1] += 1 => 3 -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407