hoichi.io
/
#recursion
Sep 15, 2018
Tail-optimized functions in ReasonML
For that mechanism to work, you have to be sure you don’t do anything with the result of the recursive call other than return it as is. That way, you don’t have to return at all. The function instance that is called last evaluates the final result and returns it straight to the original callee.
recursion
FP
OCaml
Reason
BuckleScript