is there any way to use recur
inside match
/ rewrite
?
i would like to use a meander inside loop
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.
(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.