english word · 2026-11-22

recursion

noun

Meaning

A technique where a function calls itself to solve a smaller version of the same problem, continuing until it reaches a defined base case. It is like a set of Russian nesting dolls, where each layer contains a smaller version of the whole until you find the core.

Etymology

From the Latin 'recurrere', meaning to run back or return.

Examples

"I used recursion to traverse the file directory, since each folder can contain more folders of the same structure."

"Be careful with that recursive call; if you don't define a proper base case, you'll trigger a stack overflow."

A new word every day

Get a beautiful english word in your inbox every morning. Free.

Subscribe →