unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Andreas Reuleaux <rx@a-rx.info>
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: guile-user <guile-user@gnu.org>
Subject: Re: unusual let binding (of lp) - in function element->xml from sxml simple
Date: Sat, 03 Feb 2024 22:16:55 +0000	[thread overview]
Message-ID: <87ttmpry5k.fsf@softland> (raw)
In-Reply-To: <CAJ=RwfbQqJyr9aeE7rSSW6N_NBD47wuGPo6xEt=Mspm2hYU4vw@mail.gmail.com> (David Thompson's message of "Sat, 3 Feb 2024 16:55:29 -0500")



"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,

(and I am list replying)

-Andreas




  reply	other threads:[~2024-02-03 22:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-03 21:51 unusual let binding (of lp) - in function element->xml from sxml simple Andreas Reuleaux
2024-02-03 21:55 ` Thompson, David
2024-02-03 22:16   ` Andreas Reuleaux [this message]
2024-02-04  6:30     ` tomas
2024-02-04  8:46 ` Damien Mattei
2024-02-04 15:37   ` Andreas Reuleaux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ttmpry5k.fsf@softland \
    --to=rx@a-rx.info \
    --cc=dthompson2@worcester.edu \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).