Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

remove duplicate item on a list

    final stores = storeListFilterForSearch.map((e) => e.storeId).toSet();
    storeListFilterForSearch.retainWhere((x) => stores.remove(x.storeId));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #duplicate #item #list
ADD COMMENT
Topic
Name
9+5 =