Re: Core functions for searching lists of values

2016-01-28 Thread Alan Moore
Core may do what you need but for future needs you might reach for Nathan Marz's specter library which helps navigate and manipulate complex Clojure data: https://github.com/nathanmarz/specter Take care. Alan -- You received this message because you are subscribed to the Google Groups

State of Clojure 2015 survey results

2016-01-28 Thread Alex Miller
You can find the survey writeup and result data here: http://blog.cognitect.com/blog/2016/1/28/state-of-clojure-2015-survey-results It's great to see solid growth in both the community at large and in real world usage! Thanks to all of you for filling out the survey and for being part of a

Re: [ANN] Specter 0.9.2

2016-01-28 Thread Nathan Marz
Both of those examples use half-open intervals :) The first selects the subsequence with indices 1,2,3, and the second selects the subsequence with indices 2,3. You can see in the second example that [2 3] in the overall sequence is replaced by [-1 -1 -1]. On Thu, Jan 28, 2016 at 9:10 PM, Alan

Re: State of Clojure 2015 survey results

2016-01-28 Thread Alex Miller
I am looking at some stuff for 1.9 in this area. On Thursday, January 28, 2016 at 11:58:28 AM UTC-6, Vjeran Marcinko wrote: > > > Congrats! > > BTW, regarding "error messages" being at the top of problematic features > ... Are there any plans to improve on that area in future versions? The >

[ANN] Specter 0.9.2

2016-01-28 Thread Jean Baro
Congratulations for the spectacular work and thanks for sharing this with the world. -- 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 from new members are moderated -

[ANN] Specter 0.9.2

2016-01-28 Thread Jean Baro
Congratulations for the spetacular work and thanks for sharing this. -- 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 from new members are moderated - please be patient with

Re: Core functions for searching lists of values

2016-01-28 Thread cyclops
Thanks for the replies. Certainly naming the function is a good idea. But although it avoid using anonymous functions, I was also wondering if there were existing core functions that could search a list of hashes - it seems like something that would have come up before. Then again, possibly

Re: Core functions for searching lists of values

2016-01-28 Thread Walter van der Laan
You could use 'select-keys' to filter the hashmaps; (defn submap? [m1 m2] (= m1 (select-keys m2 (keys m1 (filter (partial submap? {:quad-col 0 :quad-row 0}) test-galaxy) (filter (partial submap? {:sec-row 4 :sec-col 4}) test-galaxy) (filter (partial submap? {:type :star}) test-galaxy)

Re: State of Clojure 2015 survey results

2016-01-28 Thread Vjeran Marcinko
On Thursday, January 28, 2016 at 5:14:16 PM UTC+1, Alex Miller wrote: > > You can find the survey writeup and result data here: > > > http://blog.cognitect.com/blog/2016/1/28/state-of-clojure-2015-survey-results > > It's great to see solid growth in both the community at large and in real > world

Re: [ANN] Specter 0.9.2

2016-01-28 Thread Alan Thompson
Looks great, Nathan. I also highly enjoyed your recent interview on the Cognitect podcast . One quick question: In the first example below from the README (verified at the repl), it seems that the (srange ...) function sometimes behaves as a half-open