Skip to content

Glossary: Data Structures and Algorithms in Rust

Base case

The input a recursive function answers directly without calling itself, such as an empty list in sum_list. Without one, the calls never stop.

Where the book teaches it

Related terms

RecursionRecursive caseStack overflow