Jump to content

Anonymous recursion: Difference between revisions

m
oops
m (syntax highlighting fixup automation)
m (oops)
Line 1:
{{task|Recursion}}
 
While implementing a recursive function, it often happens that we must resort to a separate   ''helper function''   to handle the actual recursion.a
 
This is usually the case when directly calling the current function would waste too many resources (stack space, execution time), causing unwanted side-effects,   and/or the function doesn't have the right arguments and/or return values.
10,327

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.