Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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