From: AD60 Date: 2009-03-01T20:39:03+09:00 Subject: Re: Newbie question > Hash workings I see the use with an integer default, I specifically meant the Hash.new([]) syntax as problematic, but it probably all depends on knowing what your doing. Just to detail the difference: hav = Hash.new { |h,k| h[k] = []} hav[0] += [1] p hav # {0=>[1]} p hav[1] # [] p hav # {0=>[1], 1=>[]} hiv = Hash.new 0 hiv[0] += 1 p hiv # {0=>1} p hiv[1] # 0 p hiv # {0=>1} it's the difference between "{0=>[1], 1=>[]}" and "{0=>1}" result that had me wondering. Anyway thanks again, I understand how to use it and that's more than enough for now. Kind regards, André