Re: set return value is unordered, is that a bug or by design?

2016-05-31 Thread vandr0iy
You could use sorted-map, if you wish to have them ordered: https://clojuredocs.org/clojure.core/sorted-map there is also sorted-map-by, which lets you define the comparator based on which the values have to be sorted On 05/31/2016 02:54 PM, james.naad...@gmail.com wrote: > > I would expect the

Re: clojure.spec

2016-05-26 Thread vandr0iy
I'm reading clojure.spec documentation, and I want to know more about how and where a similar module is to be used. What is, say, a java equivalent to this functionality? Any examples in some existing project? Thank you in advance -- You received this message because you are subscribed to the Go

Re: Unexpected nullpointer while processing a transient vector

2016-04-25 Thread Vandr0iy
gt; brd)) >%1) > (transient []) > (map #(place nxt (first %) (last %) brd) > (get-free-squares brd))) > > - James > > > On 25 April 2016 at 01:26, Vandr0iy > > wrote: > >> Hi, Clojurists! >&g

Unexpected nullpointer while processing a transient vector

2016-04-24 Thread Vandr0iy
Hi, Clojurists! I'm writing some clojure in these days, and I stumbled upon an error that I'm unable to easily understand. My goal is to asynchronously process a 2D vector in order to solve a parametric version of the 8 chess queens problem (where the parameters are: the board's dimensions and