Re: [ANN] Chestnut 0.7.0

2015-03-07 Thread webber
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

Re: [ANN] Chestnut 0.7.0

2015-03-09 Thread webber
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

a simple question about Arrays.asList

2015-05-21 Thread webber
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

Re: a simple question about Arrays.asList

2015-05-22 Thread webber
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

Re: a simple question about Arrays.asList

2015-05-22 Thread webber
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

Re: convert between PersistentArrayMap and HashMap

2014-09-15 Thread webber
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

Re: clojure.spec regression bug for 1.9.0-alpha6

2016-06-15 Thread webber
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 %)))

JDK versions for clojure 1.7

2015-10-02 Thread webber
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