Re:My gamedever wishlist for Rust
by nemothekid on Thursday October 01, 2015 @03:42PM
(#10314098)
Someone had commented this in a response on the site.
macro_rules! max {
($e: expr) => { $e };
($e: expr, $($rest: tt)*) => { max($e, max!($($rest)*)) }
}
To take a cue from the article: how do you write a generic max() function for an arbitrary number of arguments?