chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Using the amb egg


From: Jeronimo Pellegrini
Subject: Re: [Chicken-users] Using the amb egg
Date: Tue, 10 Aug 2010 11:26:20 -0300
User-agent: Mutt/1.5.20 (2009-06-14)

On Tue, Aug 10, 2010 at 02:40:15PM +0200, Thomas Chust wrote:
> Hello Jeronimo,

Hi Thomas,

> using amb at the top level without an enclosing context providing form
> is possible, but it can be confusing. In your example you actually see
> two return values from the amb forms in the first let construct and
> none from those in the second let construct!

> Unless you know exactly what you are doing, I would recommend to
> enclose all applications of amb in amb-find or amb-collect forms. Your
> example could be modified like this:

Ah, it's clear now. So the LET form does not restrict amb to its
scope.

Thanks a lot -- and thanks to the others who answerd too.

J.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]