emacs-devel
[Top][All Lists]
Advanced

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

Re: Documentation for car and cdr


From: Mario Domenech Goulart
Subject: Re: Documentation for car and cdr
Date: Wed, 25 Jan 2006 08:37:51 +0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

On Wed, 25 Jan 2006 00:14:32 +0100 David Kastrup <address@hidden> wrote:

> Mario Domenech Goulart <address@hidden> writes:
>
>> Wouldn't it be better to write something like "Return the first
>> element of list" and "Return a list containing all but the first
>> element of list" for car and cdr, respectively?
>
> No.  cons cells don't need to point to an atom in their car, or to a
> cons cell or nil in their cdr.  This is fundamental Lisp terminology.

Actually I didn't make any assumption about what `element' can be.

But admittedly, the text about cdr is faulty, since (listp '(a . b)) is
t, for example.

Thanks for the comments.

Best wishes.
Mario




reply via email to

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