Add maximum and minimum and other functions
Rust Internals
Add maximum and minimum and other functions
There should be a convenience way to get the maximum of an array or a set. Which would work like this. assert_eq!([1,2,3].maximum(), 3); assert_eq!([1,2,3].minimum(), 1);
0 comments
No comments yet.