meander

schmee 2021-09-11T23:35:57.064100Z

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 Miller 2021-09-21T14:39:52.082900Z

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.

schmee 2021-09-21T15:44:18.083200Z

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.