Recursive Function
Recursive Function
A recursive function in short is a function that calls itself. In computer science and software engineering recursive functions can be useful tools for building out algorithms in an effective way, and reducing the amount of code that needs writing.
All recursive functions will need a break to ensure it does not cause an infinite loop. This break usually happens when the criteria of the function is met or there is nothing left to recurse on.