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

Recursion lol.

Erlang does it too.

If you want to have state you do recursion and call itself with the updated value.

fn me(iter) -> me(iter+1) end



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

Search: