let is_even = d => mod(d, 2) == 0 let is_odd = d => mod(d, 2) != 0