meander

All things about https://github.com/noprompt/meander Need help and no one responded? Feel free to ping @U5K8NTHEZ
noprompt 2021-07-01T00:11:12.095300Z

OK, bit of scope creep on the above PR to include maps. šŸ™‚

noprompt 2021-07-01T00:14:55.095900Z

Some hilarious examples.

(let [m {:a 1 :b 2 :c 3 :d 4 :e 5 :f 6 :g 7 :h 8 :i 9}]
  (r/find m
    {:g 7 :h 8 :i 9
     &a {?k (r/pred even?) & '{} :as ?m1}
     &b ?m2}
    [?k ?m1 ?m2]))
;; =>
[:f {:f 6} {:e 5, :c 3, :b 2, :d 4, :a 1}]

(let [?m1 {:a 1 :b 2}
      ?m2 {:c 3 :d 4}
      ?kvs1 [[:e 5] [:f 6]]]
  (r/subst {&1 ?m1
            &2 ?m2
            &3 ?kvs1
            &4 [[:g 7] [:h 8] [:i 9]]}))
;; =>
{:a 1 :b 2 :c 3 :d 4 :e 5 :f 6 :g 7 :h 8 :i 9}

noprompt 2021-07-01T00:16:14.097100Z

So basically symbols with names matching the regex &.* can be used many times.

noprompt 2021-07-01T00:18:44.097500Z

I just need to do a bit of post processing to clean up the output for substitution.

noprompt 2021-07-01T18:52:10.100500Z

So just FYI the new syntax will allow you to write

(a b c & _ l m n & _ x y z)
instead of
(a b c . _ ... l m n . _ ... x y z)

noprompt 2021-07-01T18:53:53.101100Z

The PR is still open, I havenā€™t merged anything yet. Iā€™m waiting on review/approval/comments from others (if anyone has them).

2021-07-01T18:58:33.101300Z

I'm still not here, but tomorrow I'll be talking publicly about why meander is awesome

noprompt 2021-07-01T19:03:08.101900Z

Awesome! Good luck with your talk.

noprompt 2021-07-01T19:05:23.104400Z

Everyone: Iā€™m also starting to make some updates to the backlog. Currently Iā€™m moving some issues to the discussions section, and closing issues which either canā€™t be resolved or do not seem like ā€œdiscussion materialā€ pending an action plan, etc.

noprompt 2021-07-01T20:13:08.104600Z

OK. I think for the most part thats done.

noprompt 2021-07-01T20:17:26.107Z

Probably the most important discussion at the moment will is the one about configuration: https://github.com/noprompt/meander/discussions/179

noprompt 2021-07-01T20:17:45.107500Z

I urge anyone with opinions/ideas about the matter to chip in.

noprompt 2021-07-01T20:19:07.108400Z

When I get a chance, I plan on opening a discussion about zeta .

noprompt 2021-07-01T20:22:29.111400Z

I will probably mention this in that discussion, but I want to let everyone know that I plan to make zeta the final version of the library (with me as the maintainer anyway) so I would like to ensure that it is robust enough to adapt and extend.

markaddleman 2021-07-01T20:47:30.120600Z

You've had enough? šŸ˜‰

šŸ’Æ 1
šŸ˜† 1