Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defn contextual-eval [ctx expr] ;; from Joy of clojure
`(let ~(vec (mapcat #(list % `('~ctx '~%)) (keys ctx)))
(defn contextual-eval ;; alternative
[ctx expr]
`(let ~(vec (apply concat ctx))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.