> [: William Xu :] > Might be a bug? (i also tested this on mzscheme, and works fine.) > > Guile version: 1.6.7, debian unstable.
Same Debian, same Guile, same effect. I guess stack has to go at one point
or another, and it is anyway a better idea to use tail recursion:
(define (enumerate-interval low high)
(letrec ((helper
(lambda (low high seq)
(if (> low high)
seq
(helper low (1- high) (cons high seq))))))
(helper low high '())))
--
Chusslove Illich (Часлав Илић)
pgpLvSRBJFDNg.pgp
Description: PGP signature
_______________________________________________ Guile-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/guile-user
