Function min_always
Source pub fn min_always<T: PartialOrd + Copy>(v: &Vec<T>, default: T) -> T
Expand description
Finds the minimum value of a vector (or default if length is zero).
§Examples
use cgrustplot::helper::math::min_always;
let result = min_always(&vec![1., 2., 3., -4., f64::NAN], 0.);
assert_eq!(result, -4.);
§Notes
Nan-valued elements are ignored.