CIS194/Lecture 01/scratch/isEven.hs

4 lines
53 B
Haskell

isEven :: Integer -> Bool
isEven n = n `mod` 2 == 0