Kotlin HashSet minWithOrNull()
Syntax & Examples
Syntax of HashSet.minWithOrNull()
The syntax of HashSet.minWithOrNull() extension function is:
fun <T> Iterable<T>.minWithOrNull( comparator: Comparator<in T> ): T?
This minWithOrNull() extension function of HashSet returns the first element having the smallest value according to the provided comparator or null if there are no elements.