> If anyone could help that would be great. try to start with writing a function like:
user=> (def code '(proxy [java.util.Observer] [] (update [o arg] (println arg)))) #'user/code user=> (cons 'observer (list (first (first (next code))) (next (next code))) ) (observer java.util.Observer ([] (update [o arg] (println arg)))) when you have you function ready then take a look at http://www.learningclojure.com/2010/09/clojure-macro-tutorial-part-i-getting.html and go through all 3 parts of this tutorial. It gives a good example how to turn your function to a macro Bost -- 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