[][src]Function rdcl_aoc_helpers::math::gcd

pub fn gcd<T>(a: T, b: T) -> T where
    T: Copy + Eq + Rem<T, Output = T> + Default

Computes the greatest common divisor for numbers a and b. TODO: May return negative values.