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