Mathematica > Core Language > List Manipulation > Rearranging & Restructuring Lists >
Mathematica > Data Manipulation > Handling Arrays of Data > Rearranging & Restructuring Lists >

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.
  • DeleteDuplicates[list] deletes all but the first occurrence of each distinct element that appears in list.
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team