[Rd] tail recursion in R

From: Ross Boylan <ross_at_biostat.ucsf.edu>
Date: Wed 15 Nov 2006 - 01:02:34 GMT

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.


Ross Boylan                                      wk:  (415) 514-8146
185 Berry St #5700                               ross@biostat.ucsf.edu
Dept of Epidemiology and Biostatistics           fax: (415) 514-8150
University of California, San Francisco
San Francisco, CA 94107-1739                     hm:  (415) 550-1062

R-devel@r-project.org mailing list
Received on Wed Nov 15 12:06:07 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 15 Nov 2006 - 09:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.