We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RustScript2/lib/eval.ml
Line 483 in 155b4c2
The inner state recursive function needs to be thought about a bit more for continuation passing style to work
The text was updated successfully, but these errors were encountered:
d1ad18c
Revert "fixes #51"
de62f45
This reverts commit d1ad18c.
causes other bugs
Sorry, something went wrong.
worth noting that elixir solves this by not letting closures be trivially recursive, the function has to accept a recursion function argument, e.g.
fib = fn(x, fib) -> if x < 2, do: n, else: fib.(n - 1, fib) + fib.(n - 2, fib) end fib.(10, fib) |> IO.inspect # 55
No branches or pull requests
RustScript2/lib/eval.ml
Line 483 in 155b4c2
The inner state recursive function needs to be thought about a bit more for continuation passing style to work
The text was updated successfully, but these errors were encountered: