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.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)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]=
Introduced in 2008
(7.0)