From: Milo Thurston Date: 2007-08-09T18:51:00+09:00 Subject: Re: Collect objects from an array based on one unique parame Konrad Meyer wrote: > And only those unique values? Not only those, but the entire objects. I could use something like names = things.collect {|x| x.name}.uniq to just get the names, but I need the rest of the data in the object also. The code I posted works, but I'm not sure that it's the best solution. -- Posted via http://www.ruby-forum.com/.