last call optimisation
last call optimisation
(programming)Last call optimisation allows arbitrarily deep nesting ofprocedure calls without consuming memory to store uselessenvironments. This is particularly useful in the special caseof tail recursion optimisation, where a procedure's lastaction is to call itself (possibly indirectly).