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.
Glossary: Data Structures and Algorithms in Rust
The input a recursive function answers directly without calling itself, such as an empty list in sum_list. Without one, the calls never stop.