fn modulo_add(a: &Vec<usize>, b: &Vec<usize>, modulus: usize) -> Vec<usize> {
    a.iter()
        .zip(b.iter())
        .map(|(x, y)| {
            let ans = (x + y) % modulus as usize;
            match ans {
                0 => 26,
                _ => ans,
            }
        })
        .collect::<Vec<usize>>()
}
/// Add two equal-length vectors together modulo (something)
Add two equal-length vectors together modulo (something)
Add two equal - length vectors together modulo ( something )
fn modulo_add(a: &Vec<usize>, b: &Vec<usize>, modulus: usize) -> Vec<usize> {
    a.iter()
        .zip(b.iter())
        .map(|(x, y)| {
            let ans = (x + y) % modulus as usize;
            match ans {
                0 => 26,
                _ => ans,
            }
        })
        .collect::<Vec<usize>>()
}
fn modulo_add ( a : & Vec < usize > , b : & Vec < usize > , modulus : usize ) -> Vec < usize > { a . iter ( ) . zip ( b . iter ( ) ) . map ( | ( x , y ) | { let ans = ( x + y ) % modulus as usize ; match ans { 0 => 26 , _ => ans , } } ) . collect :: < Vec < usize > > ( ) }
Add two equal-length vectors together modulo (something)
Add two equal - length vectors together modulo ( something )
a
&Vec<usize>
b
&Vec<usize>
modulus
usize
a
&Vec<usize>
b
&Vec<usize>
modulus
usize