Macro mycelium_util::max

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

Variadic version of core::cmp::max.

§Examples

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