Or a bit prettier:

array.uniq! &:first

-- 
Posted via http://www.ruby-forum.com/.