| Crates.io | lcmx |
| lib.rs | lcmx |
| version | 0.1.7 |
| created_at | 2023-09-02 19:24:23.547287+00 |
| updated_at | 2024-06-02 10:31:30.675472+00 |
| description | Calculate the least common multiple of multiple values |
| homepage | https://github.com/rikonaka/lcmx-rs |
| repository | https://github.com/rikonaka/lcmx-rs |
| max_upload_size | |
| id | 961873 |
| size | 4,947 |
Calculate the least common multiple of multiple values.
use lcmx::lcmx;
fn main() {
let v = vec![1, 2, 3, 4];
let l = lcmx(&v).unwrap();
println!("{}", l);
assert_eq!(l, 12);
}