Recursion

A function is classified as recursive when it calls itself. There are some types of recursive functions, among them: finite and infinite

A recursive function is classified as finite if it has a stopping condition. If not, it is classified as infinite.


// Here, MyFunction will run "infinitely",
// because it always calls itself.
func MyFunction(string parameter) {
    MyFunction(parameter)
🇧🇷
                        
recursion.go