Re: Simple recursive functions in Lisp



In article <1170895861.010675.105110@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"S. Robert James" <srobertjames@xxxxxxxxx> wrote:

According to SICP (
http://mitpress.mit.edu/sicp/full-text/book/book-Z-H-11.html#%_sec_1.2.1
), Graham's version should be considered iterative, *not* recursive.
It's functional, but iterative nonetheless.

Only in an implementation that performs tail-call elimination.

--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
.