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

Ha! Its easy to understand recursion when you understand recursion!

It would have been funnier if instead of just being a link to itself, it used a little java to make your history nest, so you could back all of the way back out of it with the back button.



I guess it must be optimising its tail calls...


> Its easy to understand recursion when you understand recursion!

Yes. But his example is not very typical. Most of the time one employs recursion to solve a problem using simpler versions of itself. He just used the same version.

Though one could argue that a REPL in e.g. Scheme works this way.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: