Recursion (computer science): Difference between revisions

Content deleted Content added
Line 103:
 
====Double-Test Tail Recursion====
The most common variatvariant of Tail recursive function is double-test tail recursion. This type of recursion first tests if the recursion reached the end (without finding the result), then tests if it found result and if neither if true, calls it self recursively. The template in [[Common Lisp]] would be:
 
(DEFUN ''func'' (X)