Anonymous recursive function is a type of recursion in which function does not explicitly call another function by name. This can be done either comprehensively, by using a higher order function passing in a function as an argument and calling that function. It can be done implicitly, via reflection features which allow one to access certain functions depending on the current context, especially ,the current function.
In theory of computer science, anonymous recursion is significant, as anonymous recursion is type of recursion in which one can implement recursion without requiring named functions .
Use of Anonymous Recursion:
- Anonymous recursion is primarily of use in allowing recursion for anonymous functions.
- Particularly when they form closures or are used as callbacks, to avoid having to bind the name of the function.
- The of use named recursion and named functions.
- If an anonymous function is given,anonymous recursion can be done either by binding a name to the function, as in named functions.
10 9 8 7 6 5 4 3 2 1