Go: Recursion

Recursion is the process of repeating items in a self-similar way.

Syntax:

func recursion() {
   recursion() /* function calls itself */
}
func main() {
   recursion()
}

Leave a Reply

Your email address will not be published. Required fields are marked *