minOf

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

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

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

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

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

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

fun minOf(a: UInt, b: UInt): UInt(source)
fun minOf(a: ULong, b: ULong): ULong(source)
fun minOf(a: UByte, b: UByte): UByte(source)

Returns the smaller of two values.

Since Kotlin

1.5

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

Returns the smaller of three values.

Since Kotlin

1.5

expect fun minOf(a: Byte, vararg other: Byte): Byte(source)
expect fun minOf(a: Short, vararg other: Short): Short(source)
expect fun minOf(a: Int, vararg other: Int): Int(source)
expect fun minOf(a: Long, vararg other: Long): Long(source)

Returns the smaller of the given values.

Since Kotlin

1.4

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

Returns the smaller of two values.

If values are equal, returns the first one.

Since Kotlin

1.1

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

Returns the smaller of two values.

Since Kotlin

1.1

expect inline fun minOf(a: Float, b: Float): Float(source)
expect inline fun minOf(a: Double, b: Double): Double(source)

Returns the smaller of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.1

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

Returns the smaller of three values.

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

Since Kotlin

1.1

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

Returns the smaller of three values.

Since Kotlin

1.1

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

Returns the smaller of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.1

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

Returns the smaller of the given values.

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

Since Kotlin

1.4

expect fun minOf(a: Float, vararg other: Float): Float(source)
expect fun minOf(a: Double, vararg other: Double): Double(source)

Returns the smaller of the given values.

If any value is NaN, returns NaN.

Since Kotlin

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

Returns the smaller of two values.

If values are equal, returns the first one.

Since Kotlin

1.1

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

Returns the smaller of two values.

Since Kotlin

1.1

actual inline fun minOf(a: Float, b: Float): Float(source)
actual inline fun minOf(a: Double, b: Double): Double(source)

Returns the smaller of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.1

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

Returns the smaller of three values.

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

Since Kotlin

1.1

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

Returns the smaller of three values.

Since Kotlin

1.1

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

Returns the smaller of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.1

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

Returns the smaller of the given values.

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

Since Kotlin

1.4

actual fun minOf(a: Byte, vararg other: Byte): Byte(source)
actual fun minOf(a: Short, vararg other: Short): Short(source)
actual fun minOf(a: Int, vararg other: Int): Int(source)
actual fun minOf(a: Long, vararg other: Long): Long(source)

Returns the smaller of the given values.

Since Kotlin

1.4

actual fun minOf(a: Float, vararg other: Float): Float(source)
actual fun minOf(a: Double, vararg other: Double): Double(source)

Returns the smaller of the given values.

If any value is NaN, returns NaN.

Since Kotlin

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

Returns the smaller of two values.

If values are equal, returns the first one.

Since Kotlin

1.1

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

Returns the smaller of two values.

Since Kotlin

1.1

actual inline fun minOf(a: Float, b: Float): Float(source)
actual inline fun minOf(a: Double, b: Double): Double(source)

Returns the smaller of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.1

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

Returns the smaller of three values.

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

Since Kotlin

1.1

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

Returns the smaller of three values.

Since Kotlin

1.1

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

Returns the smaller of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.1

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

Returns the smaller of the given values.

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

Since Kotlin

1.4

actual fun minOf(a: Byte, vararg other: Byte): Byte(source)
actual fun minOf(a: Short, vararg other: Short): Short(source)
actual fun minOf(a: Int, vararg other: Int): Int(source)
actual fun minOf(a: Long, vararg other: Long): Long(source)

Returns the smaller of the given values.

Since Kotlin

1.4

actual fun minOf(a: Float, vararg other: Float): Float(source)
actual fun minOf(a: Double, vararg other: Double): Double(source)

Returns the smaller of the given values.

If any value is NaN, returns NaN.

Since Kotlin

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

Returns the smaller of two values.

If values are equal, returns the first one.

Since Kotlin

1.3

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

Returns the smaller of two values.

Since Kotlin

1.3

actual inline fun minOf(a: Float, b: Float): Float(source)
actual inline fun minOf(a: Double, b: Double): Double(source)

Returns the smaller of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.3

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

Returns the smaller of three values.

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

Since Kotlin

1.3

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

Returns the smaller of three values.

Since Kotlin

1.3

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

Returns the smaller of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.3

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

Returns the smaller of the given values.

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

Since Kotlin

1.4

actual fun minOf(a: Byte, vararg other: Byte): Byte(source)
actual fun minOf(a: Short, vararg other: Short): Short(source)
actual fun minOf(a: Int, vararg other: Int): Int(source)
actual fun minOf(a: Long, vararg other: Long): Long(source)

Returns the smaller of the given values.

Since Kotlin

1.4

actual fun minOf(a: Float, vararg other: Float): Float(source)
actual fun minOf(a: Double, vararg other: Double): Double(source)

Returns the smaller of the given values.

If any value is NaN, returns NaN.

Since Kotlin

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

Returns the smaller of two values.

If values are equal, returns the first one.

Since Kotlin

1.8

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

Returns the smaller of two values.

Since Kotlin

1.8

actual inline fun minOf(a: Float, b: Float): Float(source)
actual inline fun minOf(a: Double, b: Double): Double(source)

Returns the smaller of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.8

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

Returns the smaller of three values.

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

Since Kotlin

1.8

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

Returns the smaller of three values.

Since Kotlin

1.8

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

Returns the smaller of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.8

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

Returns the smaller of the given values.

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

Since Kotlin

1.8

actual fun minOf(a: Byte, vararg other: Byte): Byte(source)
actual fun minOf(a: Short, vararg other: Short): Short(source)
actual fun minOf(a: Int, vararg other: Int): Int(source)
actual fun minOf(a: Long, vararg other: Long): Long(source)

Returns the smaller of the given values.

Since Kotlin

1.8

actual fun minOf(a: Float, vararg other: Float): Float(source)
actual fun minOf(a: Double, vararg other: Double): Double(source)

Returns the smaller of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.8
actual fun <T : Comparable<T>> minOf(a: T, b: T): T(source)

Returns the smaller of two values.

If values are equal, returns the first one.

Since Kotlin

1.8

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

Returns the smaller of two values.

Since Kotlin

1.8

actual inline fun minOf(a: Float, b: Float): Float(source)
actual inline fun minOf(a: Double, b: Double): Double(source)

Returns the smaller of two values.

If either value is NaN, returns NaN.

Since Kotlin

1.8

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

Returns the smaller of three values.

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

Since Kotlin

1.8

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

Returns the smaller of three values.

Since Kotlin

1.8

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

Returns the smaller of three values.

If any value is NaN, returns NaN.

Since Kotlin

1.8

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

Returns the smaller of the given values.

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

Since Kotlin

1.8

actual fun minOf(a: Byte, vararg other: Byte): Byte(source)
actual fun minOf(a: Short, vararg other: Short): Short(source)
actual fun minOf(a: Int, vararg other: Int): Int(source)
actual fun minOf(a: Long, vararg other: Long): Long(source)

Returns the smaller of the given values.

Since Kotlin

1.8

actual fun minOf(a: Float, vararg other: Float): Float(source)
actual fun minOf(a: Double, vararg other: Double): Double(source)

Returns the smaller of the given values.

If any value is NaN, returns NaN.

Since Kotlin

1.8