From: Pierre Pat Date: 2009-01-15T11:35:27+09:00 Subject: Re: Returning a duplicate from an Array I'd do like this: a.select{|x| a.index(x) != a.rindex(x)}.uniq Now, I wouldn't know which one is more efficient, but coding wise, I like that way :-) -- Posted via http://www.ruby-forum.com/.