Yes! I eventually figured it out...thanks Konrad :)
Jim
On 03/09/13 20:49, Konrad Hinsen wrote:
--On 3 septembre 2013 19:08:12 +0100 "Jim - FooBar();"
<jimpil1...@gmail.com> wrote:
understood what it does I can't figure out how to use it. Does anyone
have an example usage? Let's suppose I want to define a DEFN macro that
behaves exactly like defn...how would that go? I'm struggling to find
The general pattern is:
(defmacro defn [name & args]
(let [[name args] (name-with-attributes name args)]
... use name and args as if nothing has happened... )
For a real-life application see
https://github.com/clojure/algo.monads/blob/master/src/main/clojure/clojure/algo/monads.clj#L196
Konrad.
--
--
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
---
You received this message because you are subscribed to the Google Groups "Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.