From: David Vallner Date: 2006-01-11T15:16:31+09:00 Subject: Re: Stupid question from a Ruby newb ara.t.howard@noaa.gov wrote: > > h = objects.inject({}){|h,o| h.update o.key => o.value} > > -a Oooh, Spiffy (tm) ;P Wish I thought of that. Possibly less efficient though generating a lot of single-pair hashes that are instant garbage, although it's all fun and games until someone runs a benchmark. David Vallner