macro_rules! max {
($first: expr $(,$next: expr)*) => { ... };
}Expand description
Computes the maximum of a list of expressions.
The list must be nonempty, the expressions must all have the same type, and that type must
implement Ord. Each expression is only evaluated once.
ยงExamples
use malachite_base::max;
assert_eq!(max!(3), 3);
assert_eq!(max!(3, 1), 3);
assert_eq!(max!(3, 1, 4), 4);