in reply to Clarify I want to discard the set of elements if there are any duplicates.
Originally posted as a Categorized Answer.