DuplicateFreeQ

DuplicateFreeQ[list]

gives True if list has no duplicates, and False otherwise.

DuplicateFreeQ[list,test]

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

Details

Examples

open allclose all

Basic Examples  (1)

Determine whether or not the list has duplicated elements:

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

Use Tally to reveal duplicate elements:

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

Scope  (1)

See Also

DeleteDuplicates  DeleteDuplicatesBy  Tally  Counts  SquareFreeQ

Introduced in 2014
(10.0)