Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Recursion only begins with the notion of mutual recursion. Transforming imperative loops into recursion (with the constant-space accumulation pattern and TCO) is a nothing-special mechanical operation. Recursion really shines in mutually recursive algorithms, like the famous Hanoi Tower solution.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: