Hello and happy new year,
I've started this year with playing around with clojure macros and
wrote a macro that
behaves in a way I don't understand:
(defmacro foo
([x] `(list ~x ~x))
([x n] (if (<= n 0)
`(foo ~x)
`(foo ~(foo x)
~(- n 1)
(foo :a 0)
.
Can somebody explain why?
Regards
Poul
synphonix schrieb:
> Hello and happy new year,
>
> I've started this year with playing around with clojure macros and
> wrote a macro that
> behaves in a way I don't understand:
>
> (defmacro foo
> ([x] `(l
Thanks a lot.
This year starts well (I learned something :-)
Regards
Poul
--~--~-~--~~~---~--~~
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
To unsubscribe
Hello,
I have problems using seq-utils with the latest versions of clojure
and clojure-contrib.
I use clojure rev 1352 and clojure-contrib rev 675.
Using these two the first invocation of
(use 'clojure.contrib.seq-utils)
gives
java.lang.NoSuchMethodError: clojure.lang.MultiFn.(Lclojure/lang/
IFn
to svn rev 1339.
Regards
Poul
Meikel Brandmeyer schrieb:
> Hi,
>
> Am 18.04.2009 um 12:17 schrieb synphonix:
>
> > java.lang.NoSuchMethodError: clojure.lang.MultiFn.(Lclojure/
> > lang/
> > IFn;Ljava/lang/Object;Lclojure/lang/IRef;)V(NO_S