Created
January 17, 2014 15:43
-
-
Save daGrevis/8475541 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (defmacro if2 [expr cond1 cond2] | |
| `(get ~{true `'cond1 false `'cond2} ~expr)) | |
| (println (if2 (= 4 (+ 2 2)) | |
| (println "true") | |
| (println "false"))) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WIP.