Fork me on GitHub
#meander
<
2021-09-11
>
schmee23:09:57

is there a more concise way to write this?

(m/rewrite '(sym :foo 1 :bar 2)
    (sym . !xs ... :foo ?e . !ys ...)
    (sym . !xs ... :qux ?e :baz ?e . !ys ...))

Jimmy Miller14:09:52

Probably not if your goal is to match on these exact symbols. What would you hope for it to look like? Also, sorry for such a late response on this.

schmee15:09:18

no worries at all! what got me thinking is that this is almost m/scan but not quite, so I was wondering if that could come into play somehow.