From: dblack@... Date: 2007-08-09T21:10:14+09:00 Subject: Re: Collect objects from an array based on one unique parame On Thu, 9 Aug 2007, dblack@rubypal.com wrote: > Hi -- > > On Thu, 9 Aug 2007, dblack@rubypal.com wrote: > >> I don't think so. It might be handy to generalize it: >> >> module UniqBy >> def uniq_by > > Actually what I wrote should probably be called uniq_for or something. > uniq_by would be more like one per unique name (rather than only > unique names), which it sounds like what Miles was actually after. Sorry -- s/Miles/Milo/ David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)