meander 2022-08-24

hello again friends, is it possible to do something like a list comprehension like

(m/rewrite [:a [0 1 2]]
  ???
  ???)
;; =>
[[:a 0]
 [:a 1]
 [:a 2]]
thank you!

oh wait this works

(m/rewrite [:a [0 1 2]]
  [?i [!o ...]]
  [[?i !o] ...])
I tried to come up with a simple example of what I’m trying to do but perhaps it was too simple

There's actually an example in the cookbook which might apply here

The problem is there is no control for greed (philosophical, aren't we?) So you need to qualify it yourself

šŸ˜‚ 1