Trampolined loops for TCO recursion, pretty much copied from Drython. (Plus a macro to write the lambda). The loop macro defines a function that can call itself. The initial syntax is similar to def.
!loop: <name>: [<arg> <default>]*
<body>
Return a call to <name> to recur. See the test for an example.
Trampolined loops for TCO recursion, pretty much copied from Drython. (Plus a macro to write the lambda). The loop macro defines a function that can call itself. The initial syntax is similar to
def
.Return a call to
<name>
to recur. See the test for an example.