deletes all duplicates from list.
applies test to pairs of elements to determine whether they should be considered duplicates.
- DeleteDuplicates[list] deletes all but the first occurrence of each distinct element that appears in list.
- DeleteDuplicates also works on associations, removing entries whose values duplicate those earlier in the association.
- DeleteDuplicates never reorders elements, but only removes them.
- DeleteDuplicates[list] is equivalent to DeleteDuplicates[list,SameQ].
Examplesopen allclose all
Basic Examples (2)
Introduced in 2008
|Updated in 2014