EnhancedDeduplication<T> extension

on

Methods

removeDuplication() → List<T>

Available on Iterable<T>, provided by the EnhancedDeduplication extension

Returns a new List with all duplicate elements removed based on their values.
removeDuplicationBy<K>(K keyOf(T element)) → List<T>

Available on Iterable<T>, provided by the EnhancedDeduplication extension

Returns a new List with all duplicate elements removed, using the key returned by keyOf to determine equality instead of the element's own ==/hashCode.