Fork me on GitHub
#meander
<
2021-07-01
>
noprompt00:07:12

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

noprompt00:07:55

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}

noprompt00:07:14

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

noprompt00:07:44

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

noprompt18:07:10

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)

noprompt18:07:53

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

ribelo18:07:33

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

noprompt19:07:08

Awesome! Good luck with your talk.

noprompt19:07:23

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.

noprompt20:07:08

OK. I think for the most part thats done.

noprompt20:07:26

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

noprompt20:07:45

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

noprompt20:07:07

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

noprompt20:07:29

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.

markaddleman20:07:30

You've had enough? šŸ˜‰

šŸ˜† 4
šŸ’Æ 4