min

infix fun <T : Comparable<T>> T.min(other: T): T

Returns the minimum of two comparable values.

Return

The minimum of the two values.

Receiver

The first value to compare.

Parameters

T

The type of the values, which must implement the Comparable interface.

other

The second value to compare.