I want to create a macro that takes an expression, and runs it against a collection after replacing a bunch of function calls via the "replace" function. Something like this:
(def a {'+ '*}) (def b '(+ a b)) (defmacro substituteFuncs [replacelist expresn target] (#((replace replacelist expresn) %) `target) ) I've tweaked it a bunch of ways, and can't seem to get it to resolve properly, so (substituteFuncs a b '(3 4)) results in 12. I'm sure I'm messing up something fairly basic; any idea what I'm doing wrong? -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en