Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 393 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 393 Bytes

gcdx-rs

Calculate the greatest common divisor of multiple values.

Rust

Example

use gcdx::gcdx;

fn main() {
    let v = vec![10, 9, 8, 7];
    let g = gcdx(&v).unwrap();
    println!("{}", g);
    assert_eq!(g, 1);
}