2009/11/18 Jacek Laskowski <ja...@laskowski.net.pl>: > > user=> (macroexpand '(-> v (assoc i (v j)) (assoc j (v i)))) > (assoc (clojure.core/-> v (assoc i (v j))) j (v i)) > > How to expand the macro in the subform above?
You can use clojure.walk/macroexpand-all: (clojure.walk/macroexpand-all '(cond (even? 2) :foo (odd? 2) :bar :else :baz)) (if (even? 2) :foo (if (odd? 2) :bar (if :else :baz nil))) In slime that's available as slime-macroexpand-all which is bound to C-c M-m (at least in my system). > Jacek -- ! Lauri -- 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