I tested the v 0.7.0 of chestnut and I encountered the following error.
The v 0.6.0 works fine.
$ lein new chestnut test-app
Retrieving chestnut/lein-template/0.7.0/lein-template-0.7.0.pom from clojars
Retrieving chestnut/lein-template/0.7.0/lein-template-0.7.0.jar from clojars
Exception in thread
I ran into this same behavior, and then I realized it only happened if I
> run the "lein new" command if I'm *already in* a previously-created
> project created with "lein new chestnut". I'm guessing that something in
> the generated project.clj interferes so
I am trying to use java.util.Arrays/asList in Clojure.
(java.util.Arrays/asList 1 2 3)
CompilerException java.lang.IllegalArgumentException: No matching method:
asList, compiling:(NO_SOURCE_PATH:1:1)
(java.util.Arrays/asList 1)
ClassCastException java.lang.Long cannot be cast to [Ljava.lang.O
eate the array
> yourself:
> (java.util.Arrays/asList (make-array Object 1 2 3))
>
> Why are you trying to use Arrays#asList btw? There are probably better
> ways to do what you're trying to do.
>
> --Aaron
>
> On Thu, May 21, 2015 at 5:08 PM, webber
> > w
Hi Mauricio,
The into-array worked fine !
Thanks,
MH
> There are many things that need to be understood in a call like this.
>
> First of all, that method receives an array as its argument:
> https://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#asList(T...)
>
> From your first exa
You are right. As you pointed out, my java interface design is not good.
I've changed java interface into java.util.Map and I could pass Clojure's
map to the java interface.
I've also tested clojure.walk/postwork. The clojure.walk library is fine !
Thanks,
Makoto
--
You received this message
Maybe, the following is the same reason.
```
(defn ranged-rand ;; BROKEN!
"Returns random integer in range start <= rand < end"
[start end]
(+ start (rand-int (- start end
(s/fdef ranged-rand
:args (s/and (s/cat :start integer? :end integer?)
#(< (:start %) (:end %)))
Hi,
I'd like to ask a question.
Which versions of JDK does Clojure 1.7 support ?
1.6 or later, 1.7 or later ?
Thanks,
MH
--
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 f