minOf

Common
fun <T> minOf(a: T, b: T, c: T, comparator: Comparator<in T>): T

Returns the smaller of three values according to the order specified by the given comparator.

If there are multiple equal minimal values, returns the first of them.

Since Kotlin

1.1
Common
fun <T> minOf(a: T, b: T, comparator: Comparator<in T>): T

Returns the smaller of two values according to the order specified by the given comparator.

If values are equal, returns the first one.

Since Kotlin

1.1
Common
fun <T> minOf(a: T, vararg other: T, comparator: Comparator<in T>): T

Returns the smaller of the given values according to the order specified by the given comparator.

If there are multiple equal minimal values, returns the first of them.

Since Kotlin

1.4
Common
fun minOf(a: UInt, b: UInt): UInt
fun minOf(a: ULong, b: ULong): ULong
fun minOf(a: UByte, b: UByte): UByte
fun minOf(a: UShort, b: UShort): UShort

Returns the smaller of two values.

Since Kotlin

1.5
Common
inline fun minOf(a: UInt, b: UInt, c: UInt): UInt
inline fun minOf(a: ULong, b: ULong, c: ULong): ULong
inline fun minOf(a: UByte, b: UByte, c: UByte): UByte
inline fun minOf(a: UShort, b: UShort, c: UShort): UShort

Returns the smaller of three values.

Since Kotlin

1.5
fun minOf(a: UInt, vararg other: UInt): UInt
fun minOf(a: ULong, vararg other: ULong): ULong
fun minOf(a: UByte, vararg other: UByte): UByte
fun minOf(a: UShort, vararg other: UShort): UShort
fun minOf(a: Byte, vararg other: Byte): Byte
fun minOf(a: Short, vararg other: Short): Short
fun minOf(a: Int, vararg other: Int): Int
fun minOf(a: Long, vararg other: Long): Long
fun minOf(a: Byte, vararg other: Byte): Byte
fun minOf(a: Short, vararg other: Short): Short
fun minOf(a: Int, vararg other: Int): Int
fun minOf(a: Long, vararg other: Long): Long
fun minOf(a: Byte, vararg other: Byte): Byte
fun minOf(a: Short, vararg other: Short): Short
fun minOf(a: Int, vararg other: Int): Int
fun minOf(a: Long, vararg other: Long): Long
fun minOf(a: Byte, vararg other: Byte): Byte
fun minOf(a: Short, vararg other: Short): Short
fun minOf(a: Int, vararg other: Int): Int
fun minOf(a: Long, vararg other: Long): Long

Returns the smaller of the given values.

Since Kotlin

1.4
fun <T : Comparable<T>> minOf(a: T, b: T): T
fun <T : Comparable<T>> minOf(a: T, b: T): T
fun <T : Comparable<T>> minOf(a: T, b: T): T
fun <T : Comparable<T>> minOf(a: T, b: T): T

Returns the smaller of two values.

If values are equal, returns the first one.

Since Kotlin

1.1
inline fun minOf(a: Byte, b: Byte): Byte
inline fun minOf(a: Short, b: Short): Short
inline fun minOf(a: Int, b: Int): Int
inline fun minOf(a: Long, b: Long): Long
inline fun minOf(a: Byte, b: Byte): Byte
inline fun minOf(a: Short, b: Short): Short
inline fun minOf(a: Int, b: Int): Int
inline fun minOf(a: Long, b: Long): Long
inline fun minOf(a: Byte, b: Byte): Byte
inline fun minOf(a: Short, b: Short): Short
inline fun minOf(a: Int, b: Int): Int
inline fun minOf(a: Long, b: Long): Long
inline fun minOf(a: Byte, b: Byte): Byte
inline fun minOf(a: Short, b: Short): Short
inline fun minOf(a: Int, b: Int): Int
inline fun minOf(a: Long, b: Long): Long

Returns the smaller of two values.

Since Kotlin

1.1
inline fun minOf(a: Float, b: Float): Float
inline fun minOf(a: Double, b: Double): Double
inline fun minOf(a: Float, b: Float): Float
inline fun minOf(a: Double, b: Double): Double
inline fun minOf(a: Float, b: Float): Float
inline fun minOf(a: Double, b: Double): Double
inline fun minOf(a: Float, b: Float): Float
inline fun minOf(a: Double, b: Double): Double

Returns the smaller of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.1
fun <T : Comparable<T>> minOf(a: T, b: T, c: T): T
fun <T : Comparable<T>> minOf(a: T, b: T, c: T): T
fun <T : Comparable<T>> minOf(a: T, b: T, c: T): T
fun <T : Comparable<T>> minOf(a: T, b: T, c: T): T

Returns the smaller of three values.

If there are multiple equal minimal values, returns the first of them.

Since Kotlin

1.1
inline fun minOf(a: Byte, b: Byte, c: Byte): Byte
inline fun minOf(a: Short, b: Short, c: Short): Short
inline fun minOf(a: Int, b: Int, c: Int): Int
inline fun minOf(a: Long, b: Long, c: Long): Long
inline fun minOf(a: Byte, b: Byte, c: Byte): Byte
inline fun minOf(a: Short, b: Short, c: Short): Short
inline fun minOf(a: Int, b: Int, c: Int): Int
inline fun minOf(a: Long, b: Long, c: Long): Long
inline fun minOf(a: Byte, b: Byte, c: Byte): Byte
inline fun minOf(a: Short, b: Short, c: Short): Short
inline fun minOf(a: Int, b: Int, c: Int): Int
inline fun minOf(a: Long, b: Long, c: Long): Long
inline fun minOf(a: Byte, b: Byte, c: Byte): Byte
inline fun minOf(a: Short, b: Short, c: Short): Short
inline fun minOf(a: Int, b: Int, c: Int): Int
inline fun minOf(a: Long, b: Long, c: Long): Long

Returns the smaller of three values.

Since Kotlin

1.1
inline fun minOf(a: Float, b: Float, c: Float): Float
inline fun minOf(a: Double, b: Double, c: Double): Double
inline fun minOf(a: Float, b: Float, c: Float): Float
inline fun minOf(a: Double, b: Double, c: Double): Double
inline fun minOf(a: Float, b: Float, c: Float): Float
inline fun minOf(a: Double, b: Double, c: Double): Double
inline fun minOf(a: Float, b: Float, c: Float): Float
inline fun minOf(a: Double, b: Double, c: Double): Double

Returns the smaller of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.1
fun <T : Comparable<T>> minOf(a: T, vararg other: T): T
fun <T : Comparable<T>> minOf(a: T, vararg other: T): T
fun <T : Comparable<T>> minOf(a: T, vararg other: T): T
fun <T : Comparable<T>> minOf(a: T, vararg other: T): T

Returns the smaller of the given values.

If there are multiple equal minimal values, returns the first of them.

Since Kotlin

1.4
fun minOf(a: Float, vararg other: Float): Float
fun minOf(a: Double, vararg other: Double): Double
fun minOf(a: Float, vararg other: Float): Float
fun minOf(a: Double, vararg other: Double): Double
fun minOf(a: Float, vararg other: Float): Float
fun minOf(a: Double, vararg other: Double): Double
fun minOf(a: Float, vararg other: Float): Float
fun minOf(a: Double, vararg other: Double): Double

Returns the smaller of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.4