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

It's python, so it can't handle it either way, but by moving the final "+1" into the function call, it becomes tail-recursive.

  return add_r(a+1, b, c+1)


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

Search: