Created
January 2, 2019 02:27
-
-
Save RutledgePaulV/5e8157bb55a1261af41e4815702ed810 to your computer and use it in GitHub Desktop.
let-from-map.clj
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
(defmacro evaluate* [bindings & code] | |
(letfn [(eval-with-bindings [bindings code] | |
(let [ks (keys bindings)] | |
((eval `(fn [{:syms [~@ks]}] ~code)) bindings)))] | |
`(~eval-with-bindings ~bindings '(do ~@code)))) |
Author
RutledgePaulV
commented
Jan 2, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment