Re: Spec: Nested Cat Calls

2017-05-16 Thread Alex Miller
The problem here is that s/or is NOT a regex op and introduces a new level of spec nesting. Try using s/alt (which IS a regex op) instead. On Tuesday, May 16, 2017 at 11:34:10 PM UTC-5, Alexander Sedgwick wrote: > > I'm looking to better understand how nested cats work (now that just > sounds

Spec: Nested Cat Calls

2017-05-16 Thread Alexander Sedgwick
I'm looking to better understand how nested cats work (now that just sounds funny). I've found that sometimes spec/cat will generate a nested list: ```clojure (gen/sample (s/gen (s/cat :start #{\a} :content (s/cat :nothing (s/? #{\^})

Re: [ANN] specter-edn 0.1.2

2017-05-16 Thread Jason Felice
And, I forgot the link: https://github.com/maitria/specter-edn > > -- 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

[ANN] specter-edn 0.1.2

2017-05-16 Thread Jason Felice
Thank you to Marcelo Nomoto for bug fixes and updating the dependencies! specter-edn Specter paths for working with formatted EDN and Cloure code. There is one specter path: SEXPR. This navigates to a sequence of s-expressions parsed from a string. For the transform case, specter-edn preserves

Re: What to read after 3 dozen "introduction to transducers" blog posts

2017-05-16 Thread Alexander Yakushev
This was beautiful. I was held in suspense through the whole story, and I cried in the end. But I must tell you that such sacrifices to data gods are justified, so I will keep reifying and transducing until the very last drop of bytes leaks from the oblatory value. On Wednesday, May 10, 2017