Created
June 22, 2017 16:36
-
-
Save infinite-Joy/c546d45ef64d6f3e450087e037997742 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
user=> (defn odd-even | |
#_=> "Determines whether or not n is odd or even." | |
#_=> [n] | |
#_=> (cond | |
#_=> (= (rem n 2) 0) "even" | |
#_=> (= (rem n 2) 1) "odd")) | |
#'user/odd-even | |
user=> | |
user=> (odd-even 2) | |
"even" | |
user=> (odd-even 3) | |
"odd" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment