isEven[x is isInteger] := getBit[x,0] == 0 isOdd[x is isInteger] := getBit[x,0] == 1