A first look at recursion

A function can call itself on a smaller version of its problem, as long as a base case stops the chain, and the answer is built as the calls return one by one from the deepest.

From Introduction to Computer Science.