8 releases
0.1.7 | Jun 2, 2024 |
---|---|
0.1.6 | Jun 2, 2024 |
0.1.4 | Dec 11, 2023 |
0.1.3 | Sep 3, 2023 |
#1 in #lcm
4KB
60 lines
lcmx-rs
Calculate the least common multiple of multiple values.
Example
use lcmx::lcmx;
fn main() {
let v = vec![1, 2, 3, 4];
let l = lcmx(&v).unwrap();
println!("{}", l);
assert_eq!(l, 12);
}
Dependencies
~4KB