* letrec
@ 2010-09-01 14:35 Eric J. Van der Velden
2010-09-01 15:24 ` letrec Andy Wingo
0 siblings, 1 reply; 2+ messages in thread
From: Eric J. Van der Velden @ 2010-09-01 14:35 UTC (permalink / raw)
To: guile-user
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
Hello,
I understand that let can be made with a lambda, for example
(let((r 5))
(display r)
)
((lambda(r)
(display r)
)5)
Can something like this be done with letrec ?
Thanks,
Eric J.
[-- Attachment #2: Type: text/html, Size: 255 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: letrec
2010-09-01 14:35 letrec Eric J. Van der Velden
@ 2010-09-01 15:24 ` Andy Wingo
0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2010-09-01 15:24 UTC (permalink / raw)
To: Eric J. Van der Velden; +Cc: guile-user
On Wed 01 Sep 2010 07:35, "Eric J. Van der Velden" <ericjvandervelden@gmail.com> writes:
> Can something like this be done with letrec ?
Only via something like the Y combinator.
http://www.dreamsongs.com/NewFiles/WhyOfY.pdf
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-01 15:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01 14:35 letrec Eric J. Van der Velden
2010-09-01 15:24 ` letrec Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).