maxWithOrNull method
Returns the first entry having the largest value according to the provided
comparator
or null
if there are no entries.
Implementation
MapEntry<K, V>? maxWithOrNull(Comparator<MapEntry<K, V>> comparator) =>
entries.maxWithOrNull(comparator);