[Top][All Lists]

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

Re: Predicate for true lists

From: Stefan Monnier
Subject: Re: Predicate for true lists
Date: Mon, 04 Jun 2018 10:08:10 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> address@hidden list-true-p object
> +This function returns @code{t} if OBJECT is a true list, @code{nil}
> +otherwise.  In addition to satistying @code{listp}, a true list is
> +neither circular nor dotted.

I think this function's true name is `list-proper-p` or `proper-list-p`.
At least I've always heard it talked about as "a proper list vs
a non-proper list".

As for `cdr` vs CDR.  The all-caps version is a metavariable referring
to something which we happened to call CDR.  E.g.

    Foo takes the form (CAR . CDR) where CDR is blabla.

so I think your use of `cdr` was the right choice.


reply via email to

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