CIS194/Lecture 01/scratch/isEven.hs

3 lines
53 B
Haskell

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