help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [External] : Determine whether a list is an alist


From: Platon Pronko
Subject: Re: [External] : Determine whether a list is an alist
Date: Thu, 13 Jul 2023 19:06:22 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

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 via email to

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