Created
April 14, 2015 21:31
-
-
Save halgari/78d44aabc6adc3b6ff56 to your computer and use it in GitHub Desktop.
impementation of when with fexprs
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
(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