meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
grounded_sage 2020-03-25T10:59:56.001500Z

I keep working on the assumption that [{:key ?value} …] is the same as (m/scan {:key ?value}) Sometimes it works and sometimes it doesn’t. What am I not getting? lol

grounded_sage 2020-03-26T09:06:56.007100Z

I use cljdoc to look at documentation. Those ones are not in there. Could be due to it failing the build. @noprompt @jimmy

jimmy 2020-03-26T13:51:32.018500Z

I'll fix that today. Sorry about that. You can go back one version to look at them.

grounded_sage 2020-03-26T15:36:21.018900Z

All good! Appreciate all the work you guys are doing! I couldn’t imagine writing this 120 line meander function for transforming deeply nested json any other way

jimmy 2020-03-26T15:57:35.019100Z

All fixed

noprompt 2020-03-26T16:21:42.020900Z

They’re also available in the doc folder in the repo. 🙂

jimmy 2020-03-26T17:25:54.021700Z

The only problem was the API docs from the doc strings.

grounded_sage 2020-03-26T20:11:50.029800Z

I think I was also using it a bit wrong on cljdoc. Also my bad :p

jimmy 2020-03-25T13:21:30.001800Z

If you look at the docstring of scan you will see it is equal to [_ ... pattern . _ ...]. So unlike a simple repeat scan can skip over elements.

grounded_sage 2020-03-25T16:17:06.002Z

Ah I see.

grounded_sage 2020-03-25T16:18:03.002200Z

I’m starting to grok how this works. With respect to when I read the code lol. Ignore, repeat ignore, match pattern, stop point for next repeats, ignore, repeat ignore.