meander 2021-09-11

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 ...))

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.

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.