Programmatic tail call elimination in Java
- Describe the problem
Define :
-
recursion
-
corecursion
-
thread stack
-
tail call
-
tail call elimination
Show what is a tail call in a recursive method and what is not.
-
Picture recursion with Java
Illustrate thread stack for recursive calls
-
Describe programatic approach of tail call elimination using a
TailCall
object.Illustrate tail call elimination