Kotlin HashSet maxOfOrNull()
Syntax & Examples
Syntax of HashSet.maxOfOrNull()
The syntax of HashSet.maxOfOrNull() extension function is:
fun <T> Iterable<T>.maxOfOrNull( selector: (T) -> Double ): Double?
This maxOfOrNull() extension function of HashSet returns the largest value among all values produced by selector function applied to each element in the collection or null if there are no elements.