minOfWith<R> method

R minOfWith<R>(
  1. Comparator<R> comparator,
  2. R selector(
    1. MapEntry<K, V> entry
    )
)

Returns the smallest value according to the provided comparator among all values produced by selector function applied to each entry in the Map.

Implementation

R minOfWith<R>(
  Comparator<R> comparator,
  R Function(MapEntry<K, V> entry) selector,
) =>
    entries.minOfWith(comparator, selector);