Fork me on GitHub
#meander
<
2021-10-17
>
Jimmy Miller00:10:40

On mobile sadly. But you need an output. You have the input. A left-hand side pattern to match. But you don't define any output.

(m/rewrite "x" 
   (m/with [%x ?x] %x)
   ?x)

Richie21:10:49

Yes, thank you. I was expecting to apply with to all of the patterns but I see that's not how it works. Thank you for the help.

Jimmy Miller00:10:39

Maybe 'a was meant to be the output? If so it was inside the with instead of outside.

Richie21:10:07

Yea, I intended 'a to be the output. Thanks again!