On 13 December 2012 23:21, Rui Barradas <[email protected]> wrote:
> But it does, each recursive call will load another copy of the function, and
> another copy of the variables used.
> In fact, the cost can become quite large since everything is loaded in
> memory again.
>
> Hope this helps,
>

Many thanks for the replies.

What about tail-recursion?  I have seen that there were discussions
about this:

https://stat.ethz.ch/pipermail/r-help/2006-April/102873.html

Since it was 6 years ago, maybe now things are little different.

Best
-m



Mehmet

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to