Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Created May 20, 2014 02:30
Show Gist options
  • Save lmarburger/99152990916910624ecc to your computer and use it in GitHub Desktop.
Save lmarburger/99152990916910624ecc to your computer and use it in GitHub Desktop.
even : Nat -> Bool
even Z = True
even (S k) = odd k where
odd Z = False
odd (S k) = even k
/*
*even> even 0
True : Bool
*even> even 1
False : Bool
*even> even 2
True : Bool
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment