what is the shortest series of casts needed to get

2015-10-04 Thread Francis Avila
Does he actually need a real arraylist, or will something fulfilling a collection interface (Collection, Iterable, or List for example) be ok? Many clojure types do not require any casting at all as long as the java code writes to a collection interface and doesn't expect to be able to mutate

Re: cond->: Using of threading expression in tests?

2015-10-04 Thread Sean Corfield
So am I! Sean, can you share code for condp->> too, please. Oh, sorry, I thought it was obvious from condp-> since the only difference is that it uses ->> instead of -> in one place: (defmacro condp->> "Takes an expression and a set of predicate/form pairs. Threads expr (via ->>) through

Re: 4clojure count problem

2015-10-04 Thread Moe Aboulkheir
Roelof, The function you're passing to reduce still wants to accept two arguments. See the documentation: https://clojuredocs.org/clojure.core/reduce Take care, Moe On Sun, Oct 4, 2015 at 8:40 AM, Roelof Wobben wrote: > Oke, then I hve to find out where to put the

Re: 4clojure count problem

2015-10-04 Thread Roelof Wobben
Oke, then I hve to find out where to put the initial value. These two do not work : (reduce (fn [counter] (inc counter)) 0 [1,2,3]) (reduce (fn [counter] (inc counter) 0 ) [1,2,3]) Op zaterdag 3 oktober 2015 23:34:20 UTC+2 schreef Moe Aboulkheir: > > Roelof, > > Unless supplied with an

Re: newbie Q: how to tweak file-seq (original: how to selectively iterate through a tree of directories) ?

2015-10-04 Thread Gary Verhaegen
Sorry, I meant :when, not :where. Though it won't change the problem. Here's the rub: first file-seq produces its whole seq, then for comes along and filters out some of it. So (ignoring lazyness) file-seq ha already traversed symbolic links (at least for folders) by the time for sees it. I fear

Re: Help with macro.

2015-10-04 Thread gianluca torta
> > Yes, your solution works, but only on clojure. ClojureScript doesn't have > `resolve`. It there any portable solution? > > I'm not sure if and how you can do it in ClojureScript... have you tried: https://groups.google.com/forum/#!forum/clojurescript cheers, Gianluca -- You received

JAX-B Alternative For Clojure?

2015-10-04 Thread Timur
Hi all, Is there any JAX-B alternative for Clojure that eases generation of XMLs that are complaint with an XML schema and at the same time can be used in Clojure, i.e., enables generation of Clojure maps? Regards, Timur -- You received this message because you are subscribed to the Google

Re: 4clojure count problem

2015-10-04 Thread Roelof Wobben
Thanks, This solbved my problem. Roelof Op zondag 4 oktober 2015 11:51:49 UTC+2 schreef Moe Aboulkheir: > > Roelof, > > The function you're passing to reduce still wants to accept two > arguments. See the documentation: > https://clojuredocs.org/clojure.core/reduce > > Take care, > Moe > >

ANN incognito 0.1.0

2015-10-04 Thread Christian Weilbach
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, I would like to announce the first release of incognito [1]: - From the README: "Different Clojure(Script) serialization protocols like `edn`, `fressian` or `transit` offer different ways to serialize custom types. In general they fall back to

what is the shortest series of casts needed to get

2015-10-04 Thread Lawrence Krubner
My co-worker wrote an app in Java, which I call as a library within my own app. His code is expecting an ArrayList, and up until now I've been handing in an empty one like this: accounts (java.util.ArrayList. 1000) sentence-parse-response-map (.init instance-of-sentence-parser