From: dblack@... Date: 2007-08-09T21:08:17+09:00 Subject: Re: Collect objects from an array based on one unique parame 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. 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)