Kotlin HashSet minOfWith()
Syntax & Examples
Syntax of HashSet.minOfWith()
The syntax of HashSet.minOfWith() extension function is:
fun <T, R> Iterable<T>.minOfWith( comparator: Comparator<in R>, selector: (T) -> R ): R
This minOfWith() extension function of HashSet returns the smallest value according to the provided comparator among all values produced by selector function applied to each element in the collection.