Function quickmaths::gcd

source · []
pub fn gcd<I>(integers: I) -> I::Item where
    I: IntoIterator,
    I::Item: Integer
Expand description
use quickmaths::gcd;

assert_eq!(gcd([1, 2]), 1);
assert_eq!(gcd([3, 6]), 3);