Created
March 31, 2016 23:39
-
-
Save amalloy/ef87f4e0aa86b46b075c8275c16fab35 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 preval [[f & args]] | |
(let [syms (map (fn [_] (gensym)) args)] | |
`(let [~@(interleave syms args)] | |
(prn (list '~f ~@syms)) | |
(~f ~@syms)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment