Kotlin HashSet minWith()
Syntax & Examples
Syntax of HashSet.minWith()
The syntax of HashSet.minWith() extension function is:
fun <T> Iterable<T>.minWith(comparator: Comparator<in T>): T
This minWith() extension function of HashSet returns the first element having the smallest value according to the provided comparator.