Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defmacro def-functorC
- [fn-name fn-arg body]
- `(defn ~fn-name [[context# ~fn-arg]]
- (list context# (eval ~(map #(if (= % :context) context# %) body)))))
- ;; I want all instances of :context in my macro to be replaced by the same exact symbol generated by context#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement