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

I think a good analogy to teach recursion are humans, or really any living thing, since they too are functions that call themselves. That is, each time you create a new human, it's function is to create a new human, and so on ad infinitum.


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

Search: