Hi,
some piece of code that helps me in this special case.
Here the "translated" version:

(defmacro apply-macro
  [m & args]
  `(list* ~m ~...@args))

(def li '(true false false))
(eval (apply-macro 'and true false li)) ; observe of the quote before
the macro

Or instead of trying sth. like:

(defn some-test [x & args] (if-not (nil? x) (apply and args))) ; this
will fail

writing this function as macro:

(defmacro some-test [x & args] `(if-not (nil? ~x) (and ~...@args) false))

Somebody with other ideas?

Greets, Benjamin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to