DeleteDuplicates

DeleteDuplicates[list]

deletes all duplicates from list.

DeleteDuplicates[list,test]

applies test to pairs of elements to determine whether they should be considered duplicates.

Details

Examples

open allclose all

Basic Examples  (2)

Delete duplicated elements:

In[1]:=
Click for copyable input
Out[1]=

Delete elements whose values duplicate those earlier in the association:

In[1]:=
Click for copyable input
Out[1]=

Scope  (1)

Properties & Relations  (2)

See Also

DeleteDuplicatesBy  Union  Counts  Tally  DuplicateFreeQ  DeleteCases  Select  Gather  Split  Partition

Introduced in 2008
(7.0)
| Updated in 2014
(10.0)