maxOf

abstract fun <R : Comparable<R>> maxOf(selector: (Map.Entry<K, V>) -> R): R

返回按给定选择器函数选择的最大元素的值。

Return

按给定选择器函数选择的最大元素的值。

Parameters

selector

用于选择元素的选择器函数。