all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: "The starting list count" ?????
Date: Mon, 3 Jan 2022 17:49:40 +0000	[thread overview]
Message-ID: <YdM3NMYCDk/YQH1h@ACM> (raw)

Hello, Emacs.

I'm trying to make sense of the form whose printed syntax is

    (1 . #1)

which arises in the Emacs test suite file seq-tests.el.  I'm having
difficulty.

The Elisp manual page "Special Read Syntax" says about it:

   `#N'
       When printing circular structures, this construct is used to
       represent where the structure loops back onto itself, and `N' is
       the starting list count:

            (let ((a (list 1)))
              (setcdr a a))
            => (1 . #0)

..  What does this mean, please?  What does "is the starting list count"
mean?  There is only one "list", so what is the "list count"?

Clearly the N in #N is counting something, but what?  What is the
meaning of

    (1 . #1)

?  What is it about the description in the manual which is so perplexing
me?

Help!

-- 
Alan Mackenzie (Nuremberg, Germany).



             reply	other threads:[~2022-01-03 17:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-03 17:49 Alan Mackenzie [this message]
2022-01-03 18:00 ` "The starting list count" ????? Robin Tarsiger
2022-01-03 18:33   ` Andreas Schwab
2022-01-03 18:59     ` Robin Tarsiger
2022-01-03 19:24       ` Andreas Schwab
2022-01-03 19:36       ` Eli Zaretskii
2022-01-03 18:54   ` Alan Mackenzie
2022-01-03 19:26     ` Andreas Schwab
2022-01-03 18:05 ` Stefan Monnier
2022-01-03 19:21   ` Alan Mackenzie
2022-01-03 19:50     ` Andreas Schwab
2022-01-03 19:55       ` Alan Mackenzie
2022-01-03 20:38     ` Stefan Monnier
2022-01-03 20:58       ` Stefan Monnier
2022-01-03 21:03       ` Alan Mackenzie
2022-01-03 21:15         ` Stefan Monnier
2022-01-03 21:33           ` Alan Mackenzie
2022-01-04  0:43             ` Stefan Monnier
2022-01-03 18:13 ` Andreas Schwab

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

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

  git send-email \
    --in-reply-to=YdM3NMYCDk/YQH1h@ACM \
    --to=acm@muc.de \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.