Created
August 16, 2011 06:21
-
-
Save hexgnu/1148527 to your computer and use it in GitHub Desktop.
Kind of a heavy handed way to get even...
This file contains hidden or 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
(defn is-even? [n] | |
(if (= n 0) | |
true | |
(not (is-even? (dec n))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment