http://qs321.pair.com?node_id=629150


in reply to What is the best way to get just the duplicates from an array?

Another shameless plug? possibly... but apropos.
Great suggestions thus far, so in the spirit of TIMTOWTDI I would suggest having a look at
The Uniqueness of hashes.
It's a collection of some techniques for just this sort of operation.

-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo
  • Comment on Re: What is the best way to get just the duplicates from an array?