Kotlin HashSet maxOf()
Syntax & Examples
Syntax of HashSet.maxOf()
The syntax of HashSet.maxOf() extension function is:
fun <T> Iterable<T>.maxOf(selector: (T) -> Double): Double
This maxOf() extension function of HashSet returns the largest value among all values produced by selector function applied to each element in the collection.