Takes two comparable values a and b and returns the smaller of the two values.

Signature

pub fn min, +Drop, +Copy>(a: T, b: T) -> T

Examples

use core::cmp::min;

assert!(min(0, 1) == 0);