fn normalize(a: Int, n: &Int) -> Int {
    let a = a % n;
    match a.cmp(&Int::zero()) {
        Ordering::Less => a + n,
        _ => a,
    }
}
/// Find the standard representation of a (mod n).
Find the standard representation of a (mod n).
Find the standard representation of a ( mod n ) .
fn normalize(a: Int, n: &Int) -> Int {
    let a = a % n;
    match a.cmp(&Int::zero()) {
        Ordering::Less => a + n,
        _ => a,
    }
}
fn normalize ( a : Int , n : & Int ) -> Int { let a = a % n ; match a . cmp ( & Int :: zero ( ) ) { Ordering :: Less => a + n , _ => a , } }
Find the standard representation of a (mod n).
Find the standard representation of a ( mod n ) .
a
Int
n
&Int