mergeDuplicatesBy method

Iterable<T> mergeDuplicatesBy(
  1. IterableFunction<T, U> fn,
  2. MergeableFunction<T> mergeFn
)

Merge multiple values from an iterable given a predicate without modifying the original iterable.

Implementation

Iterable<T> mergeDuplicatesBy(
        IterableFunction<T, U> fn, MergeableFunction<T> mergeFn) =>
    _mergeDuplicatesBy(this, fn, mergeFn);