Macro mycelium_util::math::min

source ·
macro_rules! min {
    ($arg:expr) => { ... };
    ($arg1:expr, $($arg:expr),+) => { ... };
}
Expand description

Variadic version of core::cmp::min.

§Examples

let min = mycelium_util::math::min![1, 2, 3, 4];
assert_eq!(min, 1);