Skip to content

Instantly share code, notes, and snippets.

@dLobatog
Created July 5, 2012 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dLobatog/3050306 to your computer and use it in GitHub Desktop.
Save dLobatog/3050306 to your computer and use it in GitHub Desktop.
natElim : a -> (a -> a) -> Nat -> a
natElim z s O = z
natElim z s (S n) = s (natElim z s n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment