Kotlin HashSet minOfOrNull()
Syntax & Examples


Syntax of HashSet.minOfOrNull()

The syntax of HashSet.minOfOrNull() extension function is:

fun <T> Iterable<T>.minOfOrNull( selector: (T) -> Double ): Double?

This minOfOrNull() extension function of HashSet returns the smallest value among all values produced by selector function applied to each element in the collection or null if there are no elements.