Finally I think I have found a practical Lisp I can devote myself to.
Hoping for great times ahead.
Thanks again for the release.
Regards,
Santanu Chatterjee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cloj
the clj files in
clojure.jar, but could not. Instead I found this:
--
static final Symbol FN = Symbol.create("fn*");
--
So I guess these are directly written in Java.
Regards,
Santanu
--~--~-~--~~~---~--~~
You received this message because you ar
On May 2, 12:28 am, Michael Wood wrote:
>
> user=> (macroexpand-1 '(#(%1 %2) 1 2))
> ((fn* [p1__1 p2__2] (p1__1 p2__2)) 1 2)
Oops! I forgot about macroexpand. I should have tried that first.
What does the * in fn* mean? I tried (doc fn*) but got an error
i
On May 2, 12:27 am, CuppoJava wrote:
> #(%1 %2) is equivalent to writing (fn [a b] (a b))
Ah.. I see. Thanks.
-Santanu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to thi
Hi Everybody,
Why does this work:
-
user> ((fn [a b] a b) 1 2)
2
-
But this doesn't:
-
user> (#(%1 %2) 1 2)
java.lang.ClassCastException: java.lang.Integer cannot be cast to
clojure.lang.IF
-
Regar
do it.
1. I created a simple test2.clj file in my $HOME:
---
(ns test2
(:gen-class))
(defn -main [& args]
(println "Hello, world of Clojure!"))
2. I started a clojure REPL, from a terminal:
sant...@lenny:~
le. I also don't know
how to use ant (is that required?). I know javac can be applied on
a .java file to get a .class file... but I dunno what applies to
a .clj file?
Kindly suggest how do I do this. Any pointer(s) to a suitable online
article would be great.
Thanks in advance for your help.
e a comprehensive intro.
Once I go through this once, I hope I will be able to read _and_
understand
the Java API.
Regards,
Santanu Chatterjee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" grou
I am having problems exploring the various functions in the Java
libraries.
Could you please suggest any Java book (and the relevant chapters)
that
will teach me _just_enough_ Java so that I can understand how to use
the Java
library documentation effectively.
Thanks in advance.
Regards,
Sa
d you please suggest any Java book (and the relevant chapters)
that
will teach me _just_enough_ Java so that I can understand how to use
the Java
library documentation effectively.
Thanks in advance.
Regards,
Santanu Chatterjee
--~--~-~--~~~---~--~~
You received
10 matches
Mail list logo