> Duplicate elements in array
> Posted by Shuaib Zahda (shuaib85) on 28.10.2007 13:47
> Hello
>
> I am trying to output the duplicate elements in an array. I looked into
> the api of ruby I found uniq method which outputs the array with no
> duplication. What i want is to know which elements is duplicated.

Here's yet another way to do it: 
http://snippets.dzone.com/posts/show/4148

Cheers,

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