From: William James Date: 2009-02-16T11:53:16+09:00 Subject: Re: Iterating a changing Hash under 1.9.1 Phrogz wrote: > Always relegating deletions to a delete_if or reject or > explicit calls while iterating a duplicate may be inefficient in some > cases where complex logic needs to happen and ideally happen in a > single pass through the data. h={:b,22, :c,33, :d,44, :e,55} ==>{:b=>22, :c=>33, :e=>55, :d=>44} h.merge( {:b,202, :e,505, :f,66} ) ==>{:b=>202, :c=>33, :f=>66, :e=>505, :d=>44}