emacs-devel
[Top][All Lists]
Advanced

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

Re: lists, plain conses and length


From: Stefan Monnier
Subject: Re: lists, plain conses and length
Date: Thu, 03 Sep 2020 22:26:51 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> Q: how does one distinguish a cons from a list.

A: check `null`

(tongue in cheek)


        Stefan


PS: Hint: `(listp X)` is the same as `(or (consp X) (null X))`




reply via email to

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