On May 12, 2009, at 16:40, samppi wrote:
> I thought that:
> `(with-monad maybe-m (m-seq ~xs)))
>
> would insert [1 2 3] where ~xs would be, becoming the list:
> (with-monad maybe-m (m-seq [1 2 3]))
It does, if you define your macro as
(defmacro b [xs]
`(with-monad maybe-m (m-seq ~xs)))
But your argument list was [& xs], which sets xs to the list of all
arguments given to the macro.
Konrad.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---