Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove duplicates from list

 ArrayList<Object> withDuplicateValues;
 HashSet<Object> withUniqueValue = new HashSet<>(withDuplicateValues);
 
 withDuplicateValues.clear();
 withDuplicateValues.addAll(withUniqueValue);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicates #list
ADD COMMENT
Topic
Name
5+1 =