Skip to content

Instantly share code, notes, and snippets.

@halgari
Created April 14, 2015 21:31
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 halgari/78d44aabc6adc3b6ff56 to your computer and use it in GitHub Desktop.
Save halgari/78d44aabc6adc3b6ff56 to your computer and use it in GitHub Desktop.
impementation of when with fexprs
(defexpr $when [test & body]
(if (eval test)
(eval (cons 'do body))
nil))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment