I write a simple macro and an invocation of the macro. Here is the
code:
(defmacro my-macro
[& body]
`(for [cur-date# ["2011-09-04" "2011-09-05"]]
(do ~@body)
)
)
(my-macro
(printf "a_message\n")
)
I get a_message printed twice if I paste the code in a clojure REPL.
But I save the co
Michael, thanks for your explanation. I have used dorun to solve my
problem following your suggestion.
--
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 m
java.lang.String has a method called indexOf(String str). We can use
it with
clojure in the following way:
(.indexOf "012" "12")
Does clojure has a API for this? I have checked clojure.core and
clojure.string.
It seems that clojure does not have a counterpart for indexOf.
--
You received this m
Thanks for your clarification.
On Oct 9, 11:47 pm, Stephen Compall wrote:
> On Sun, 2011-10-09 at 07:36 -0700, jingguo wrote:
> > Does clojure has a API for this? I have checked clojure.core and
> > clojure.string.
> > It seems that clojure does not have a counterpart fo
I do with the use of Chrome browser.
On Oct 12, 10:30 pm, Chas Emerick wrote:
> Wikispaces does some strange https redirects through its own domain for
> session handling. If your agent doesn't react as it expects, you can end up
> in all sorts of strange places (including having no way to get
Is tools.logging is a replacement of clojure.contrib.logging?
Which one should I use?
--
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
part of contrib, use the clojure/ one.
>
>
>
>
>
>
>
> On Wed, Oct 12, 2011 at 5:06 PM, jingguo wrote:
> > Is tools.logging is a replacement of clojure.contrib.logging?
> > Which one should I use?
>
> > --
> > You received this message because y
When programming in Clojure, I use the Reference documentation on
clojure.org a lot. But my network condition is horrible. So I want to
make a off-line copy. I have tried "wget -x -m -k http://clojure.org";
to make a mirror of clojure.org. But it does not work.
Can anybody help me on this? Thanks.
Sean:
The links give me a clear answer.
On Oct 13, 2:30 am, peta wrote:
> On clojure.org the libraries link at the bottom of the left bar should
> take you Clojure+Contrib because thats about as close to official
> libraries as clojure gets.
> The Clojure+Contrib page can reference the community
I want to submit the Contributor Agreement.
One question is whether the following mail address on
http://clojure.org/contributing is still valid:
Rich Hickey
514 South Duke Street
Durham, NC 27701
The other question is whether the above address is in USA. I live in
Beijing. I need to fill the co
Stu:
Thanks a lot.
On Oct 16, 7:24 pm, Stuart Halloway wrote:
> > I want to submit the Contributor Agreement.
>
> > One question is whether the following mail address on
> >http://clojure.org/contributingis still valid:
>
> > Rich Hickey
> > 514 South Duke Street
> > Durham, NC 27701
>
> > The o
jayvandal:
If you don't use Leiningen, make sure that the pathname for
clojure.java.jdbc jar file exists in classpath.
On Oct 25, 1:39 pm, Sean Corfield wrote:
> On Mon, Oct 24, 2011 at 8:36 PM, jayvandal wrote:
> > I am running Vista. I installed Clojure as c:\clojure.
>
> You don't need to "i
12 matches
Mail list logo