lcmx

Crates.iolcmx
lib.rslcmx
version0.1.7
sourcesrc
created_at2023-09-02 19:24:23.547287
updated_at2024-06-02 10:31:30.675472
descriptionCalculate the least common multiple of multiple values
homepagehttps://github.com/rikonaka/lcmx-rs
repositoryhttps://github.com/rikonaka/lcmx-rs
max_upload_size
id961873
size4,947
isinstance (rikonaka)

documentation

https://docs.rs/lcmx

README

lcmx-rs

Calculate the least common multiple of multiple values.

Rust

Example

use lcmx::lcmx;

fn main() {
    let v = vec![1, 2, 3, 4];
    let l = lcmx(&v).unwrap();
    println!("{}", l);
    assert_eq!(l, 12);
}
Commit count: 16

cargo fmt