Fork me on GitHub
#meander
<
2021-04-06
>
ribelo09:04:42

is there any way to use recur inside match / rewrite ?

ribelo09:04:44

i would like to use a meander inside loop

Jimmy Miller13:04:02

In rewrite m/cata is basically recur. On the rhs it acts just like recur. On the left hand side you can match on the result of recurring. Which is a little trippy.

👍 3
noprompt16:04:17

(loop [,,,]
  (match x (recur ,,,))
Does not work at the moment due to the way matches are compiled. If you’re able to, use reduce. This is a solvable problem for match/`find` but I cannot prioritize it.

👍 3