guile-user
[Top][All Lists]
Advanced

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

Re: unusual let binding (of lp) - in function element->xml from sxml sim


From: tomas
Subject: Re: unusual let binding (of lp) - in function element->xml from sxml simple
Date: Sun, 4 Feb 2024 07:30:20 +0100

On Sat, Feb 03, 2024 at 10:16:55PM +0000, Andreas Reuleaux wrote:
> 
> 
> "Thompson, David" <dthompson2@worcester.edu> writes:
> 
> 
> > This is a form of 'let' known as "named let". In the code you
> > reference, the variable 'lp' is a procedure, short for "loop", and the
> > let bindings give initial values for the loop. Calling 'lp' will bring
> > control back to the beginning of the 'let' with the bindings rebound
> > to new values. It's a convenient shorthand for simple loops.
> >
> > See 
> > https://www.gnu.org/software/guile/manual/html_node/while-do.html#index-let-1
> > for more info.
> >
> > Hope this helps,
> >
> > - Dave
> 
> 
> OK, thanks a lot ... and yes: this does help indeed,

I always think of it as letrec's little sister :-)

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


reply via email to

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