removeDuplicates method

  1. @useCopy
IList<T> removeDuplicates()

Removes duplicates (but keeps items which appear only once, plus the first time other items appear).

Implementation

@useCopy
IList<T> removeDuplicates() {
  LinkedHashSet<T> set = _l.toLinkedHashSet();
  return IList<T>.withConfig(set, config);
}