Fork me on GitHub
#meander
<
2021-11-22
>
noprompt19:11:59

That would be difficult to implement with the project in its current state due to the way the compiler currently generates code for memory variables. Could you capture the sequence as logic variable?

(m/rewrite [1 2 3]
  [& ?a]
  [[& ?a], [& ?a]])

markaddleman19:11:16

I some cases, yes. In others, I think it would end up complicating the rewrite since I'd have to more with m/app and handling the sequence in with map or something

markaddleman19:11:31

It's not a big deal - it just occurred to make while I was working through some code

noprompt19:11:14

OK. I can think on other examples if you want to share their basic shapes with me too.

👍 1
noprompt19:11:20

& can be used multiple times now and you can use m/and as in [& ?a & (m/and ?b [!x !y ...])]