Search found 2 matches

by AlexPeake
Thu Dec 11, 2003 11:55 pm
Forum: newLISP in the real world
Topic: NewLisp not Tail Recursive?
Replies: 7
Views: 6568

Tail Recursion

Thanks for the "work-around".

Kind of misses the point of using Lisp/Scheme?
by AlexPeake
Thu Dec 11, 2003 3:38 am
Forum: newLISP in the real world
Topic: NewLisp not Tail Recursive?
Replies: 7
Views: 6568

NewLisp not Tail Recursive?

I Try:

(define (fact x ans)
(if (< x 1)
ans
(fact (- x 1) (* x ans))))

Which is Tail Recursive and yet I still get stack overflow??