Heya! š Using meander.strategy.epsilon/rewrite, is there a way to combine a memory variable via a clojure function? Iād like to turn
[{:var "foo"}, {:var "bar"}]
into
"foo.bar"
but all my current attempts fail š³(let [rewrite
(r/until =
(r/bottom-up
(r/attempt
(r/rewrite
[{:var !x} ... ]
~(clojure.string/join "." [!x ...])
))))] ...)
is my current attempthttps://gist.github.com/srenatus/ca296eaaa9333f959f3570f68ab96b4a
realised what I was missing just when I left the computer: m/app.
(m/app (fn [x] (clojure.string/join "." x)) [!x ...])
this works. it can be simplified, but just to close the thread.