Skip to content

Instantly share code, notes, and snippets.

@sritchie

sritchie/sam.clj

Forked from robinkraft/sam.clj
Created Jan 25, 2012
Embed
What would you like to do?
first macro!
(defmacro sam [expr pos zero neg]
(if (< 0 (eval expr))
pos
(if (> 0 (eval expr))
neg
zero)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.