From: Joel VanderWerf Date: 2007-09-13T06:38:14+09:00 Subject: Re: Merge an array of hashes Phrogz wrote: > On Sep 12, 1:20 pm, Joel VanderWerf wrote: ... >> Or the equivalent using #inject, if you like: ... > ...which brings us back (almost) to JEGII's original response :) Sorry, my bad :/ But note that #merge! is probably slightly faster in this case than #merge, since it reuses the same hash. This is safe in this case because the accumulated hash is not referenced elsewhere during the iteration. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407