From: Phrogz Date: 2007-03-07T05:50:05+09:00 Subject: Re: remove duplicates of array of object based on a attribute Erik Veenstra wrote: > And here's the inevitable one-liner... :} Not that we're golfing, but I like this one better in terms of one- linedness: Hash[ *map{ |o| [ o[:id], o ] }.flatten ].values