No transducer variant of partition?

2016-10-11 Thread Mars0i
partition-all has a transducer variant, but partition doesn't. Just curious why. The difference between the non-transducer functionalities is that, for example, (partition-all n coll) will return shorter-than-n stub sequences at the end of the main output sequence if the (count coll) isn't div

Re: Should I switch to Clojure after 3 years of learning another full stack ?

2016-10-11 Thread Matt Mitchell
My first Clojure "app" was a CLI utility that pulled data from a SQL database, mapped records into another form, and pushed them into a search engine app. It took me about 3 weeks to do that with no lisp experience at all, and I was super rusty on Java at that point. It was "hard", but I really

Re: clojure.spec, conform and returned value

2016-10-11 Thread Alex Miller
On Tuesday, October 11, 2016 at 1:30:18 PM UTC-5, plamen.use...@gmail.com wrote: > > Hello, > > I have a problem which is probably not in the spirit of clojure.spec as > being a library for "only" checking/generating valid values, but of > substantial practical value for my use case: > > Let s

Re: clojure.spec, conform and returned value

2016-10-11 Thread plamen . usenet
Amazing! Lot of thanks Josh! This solves everything. It is even written in the API doc, but I missed the important piece of "(possibly converted) value"... With best regards Plamen On Tuesday, October 11, 2016 at 8:49:16 PM UTC+2, Josh Tilles wrote: > > I think you’re looking for conformer >

Re: clojure.spec, conform and returned value

2016-10-11 Thread Josh Tilles
I think you’re looking for conformer ; the spec it produces will pass along the converted value instead of the original input. It could be used like: (defn str->double [s] (try (Double/valueOf s)

clojure.spec, conform and returned value

2016-10-11 Thread plamen . usenet
Hello, I have a problem which is probably not in the spirit of clojure.spec as being a library for "only" checking/generating valid values, but of substantial practical value for my use case: Let say I have a function for checking if a double precision number is parsable from a string (where p

Re: ThreatGRID/Cisco Looking for Clojure Developers

2016-10-11 Thread Timo Sulg
Hi, Alex! I've few questions before i'll send my application. Is it remote? Is there any timezone limitations? I saw your ad first on the "Who is hiring" tab on the Hackernews and it also mentioned France. Timo http://www.clojure.expert On Tuesday, September 27, 2016 at 6:19:11 PM UTC+2, Ale

Re: [ANN] codox-klipse-theme 0.0.1- Clojure[script] automatically generated live documentation

2016-10-11 Thread Andrea Richiardi
On Monday, October 10, 2016 at 9:29:35 AM UTC-7, Yehonathan Sharvit wrote: > https://github.com/viebel/codox-klipse-theme > > codox is a great tool for generating API documentation from Clojure or > ClojureScript source code. This is very cool stuff thanks! -- You received this message because

Re: [ANN] permissions - role & permission based access control

2016-10-11 Thread Torsten Uhlmann
Thanks for the comments! @larry I was reminded by your comment at how I used to use bitmasks before, like @adrian commented. That would only get 64 states into a 64 bit Long, but was always enough. I have no performance data on prime number sieves but I suspect that would take longer than checking

Re: [ANN] permissions - role & permission based access control

2016-10-11 Thread adrian . medina
If you wanted to do something more efficient, why not just use a bitmask? That is far more efficient than prime factorization. On Tuesday, October 11, 2016 at 12:06:19 AM UTC-4, larry google groups wrote: > > A minor pet peeve of mine, but is it possible to attach prime numbers to > the roles,