Andy Cooper
1/13/2009 10:05:00 PM
> Hey guys,
> I have an array of names that may contain duplicates. What I=20
> 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=20
> can find is
> Array.uniq, which returns the array without the duplicates.
>=20
> Any suggestions on how to do this?
>=20
> Thanks,
> - Jeff Miller
> --=20
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.