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 all close 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)

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