Skip to content
Prev 22898 / 63424 Next

tail recursion in R

Apparently Scheme is clever and can turn certain apparently recursive
function calls into into non-recursive evaluations.

Does R do anything like that?  I could find no reference to it in the
language manual.

What I'm wondering is whether there are desirable ways to express
recursion in R.

Thanks.