unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Platon Pronko <platon7pronko@gmail.com>
To: uzibalqa <uzibalqa@proton.me>, Drew Adams <drew.adams@oracle.com>
Cc: uzibalqa via Users list for the GNU Emacs text editor
	<help-gnu-emacs@gnu.org>
Subject: Re: [External] : Determine whether a list is an alist
Date: Thu, 13 Jul 2023 19:06:22 +0300	[thread overview]
Message-ID: <78ff34f4-a89a-fe18-2681-6eea818b8491@gmail.com> (raw)
In-Reply-To: <NmVeAIqQQ2YUPDg6_9AlFZzpEB1TZQzvBwUqZQeDfAbjfOqv0TyebM8pQmSIxnLfRx4QDQ82ETPXHGKMvR6WYy9dq-PaN5YX6zALp1YbrlQ=@proton.me>

On 2023-07-13 18:57, uzibalqa wrote:
> If I want to print the alist in (Key . Value) way, how would one skip
> extraneous (non-cons) list entries ?

There's a consp function that you can use to check if entry is cons or not. (this page is the first result on google for me: https://www.gnu.org/software/emacs/manual/html_node/elisp/List_002drelated-Predicates.html)

-- 
Best regards,
Platon Pronko
PGP 2A62D77A7A2CB94E




  reply	other threads:[~2023-07-13 16:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13 10:40 Determine whether a list is an alist uzibalqa
2023-07-13 14:31 ` [External] : " Drew Adams
2023-07-13 14:40   ` Platon Pronko
2023-07-13 15:40     ` Drew Adams
2023-07-13 15:44       ` Drew Adams
2023-07-13 15:49       ` Platon Pronko
2023-07-13 15:56         ` Drew Adams
2023-07-13 15:57       ` uzibalqa
2023-07-13 16:06         ` Platon Pronko [this message]
2023-07-13 16:14           ` Drew Adams
2023-07-13 16:07         ` Drew Adams
2023-07-13 16:12           ` Robert Pluim
2023-07-13 16:16             ` Drew Adams
2023-07-13 15:59       ` Drew Adams
2023-07-13 14:42   ` uzibalqa

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/emacs/

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

  git send-email \
    --in-reply-to=78ff34f4-a89a-fe18-2681-6eea818b8491@gmail.com \
    --to=platon7pronko@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=uzibalqa@proton.me \
    /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).