From: Bil Kleb Date: 2009-07-18T07:50:05+09:00 Subject: Re: [Q] removing array duplicates where a subset is unique David A. Black wrote: > def dedup(ary) > uniq = {} > ary.each do |line| > uniq[ary[0..2]] ||= line > end > uniq.values > end Sweet! (I love Ruby; thanks Matz.) Regards, -- Bil