On Mar 28, 2007, at 5:27 PM, Thomas Lord wrote:
Abdulaziz Ghuloum wrote:
One advantage of this is that it would be much easier to create a
purely
functional subset of Scheme.
How do you do the following functionally?
(letrec ([f (g (lambda () f))])
f)
Well, f is then given by
(g (lambda () (g (lambda () (g (lambda () g ...))))))
So what?
I don't know what the ellipsis mean. Just rewrite the following
expression as another Scheme expression that does not use letrec
or set!:
(lambda (g)
(letrec ((f (g (lambda () f))))
f))
Aziz,,,
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss