Wolfram Language & System 10.4 (2016)|Legacy Documentation
This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
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].
Introduced in 2008
(7.0)| Updated in 2014