From: Andy Cooper Date: 2009-01-14T07:04:52+09:00 Subject: Re: Returning a duplicate from an Array > Hey guys, > I have an array of names that may contain duplicates. What I > would like > to do is return an array OF THE DUPLICATES. I was looking around at > various built-in methods for arrays, but the closest thing I > can find is > Array.uniq, which returns the array without the duplicates. > > Any suggestions on how to do this? > > Thanks, > - Jeff Miller > -- Without really looking into it a quick and dirty way would be to just subtract the results of .uniq from the initial array. Andy Cooper.