minOf
fun <T : Comparable<T>> minOf(a: T, b: T): TReturns the smaller of two values. If values are equal, returns the first one.
Returns the smaller of two values.
fun <T> minOf(
a: T,
b: T,
c: T,
comparator: Comparator<in T>
): TReturns the smaller of three values according to the order specified by the given comparator.
fun <T> minOf(a: T, b: T, comparator: Comparator<in T>): TReturns the smaller of two values according to the order specified by the given comparator. If values are equal, returns the first one.
Returns the smaller of two values.
Returns the smaller of three values.