Background

We can now introduce any number and types of functions to morph our input to a certain output with function composition. Despite composing functions with multiple occurrences of the same function in the list, we haven’t tried calling the function within itself. Calling the same function within its body allows us to enter a new realm of programming called recursive programming.

Get hands-on with 1200+ tech skills courses.