Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Give the elements that appear more than once in the input list
ResourceFunction["DuplicatesList"][list] gives those elements in list that appear more than once. | |
ResourceFunction["DuplicatesList"][list,test] applies test to pairs of elements to determine if they should be considered identical. |
DuplicatesList[list] is equivalent to Map[First,DeleteCases[Gather[list],{_}]]
In[2]:= |
Out[2]= |
In[3]:= |
Out[3]= |
In[4]:= |
Out[4]= |
This work is licensed under a Creative Commons Attribution 4.0 International License