Community Article

Recursion Demystified

How to read recursion as a contract instead of a stack trace, the four parts of every recursive function, and where iteration beats it in practice.