Last active
August 20, 2018 10:15
-
-
Save wuct/deb81bf5c1e626acf7f8ebbdd7f504c4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data Nat = Succ Nat | Zero | |
isEven :: Nat → Boolean | |
isEven Zero = true | |
isEven (Succ n) = isOdd n | |
isOdd :: Nat → Boolean | |
isOdd Zero = false | |
isOdd (Succ n) = isEven n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment