[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Documentation for car and cdr
From: |
Miles Bader |
Subject: |
Re: Documentation for car and cdr |
Date: |
Thu, 26 Jan 2006 10:54:52 +0900 |
Alan Mackenzie <address@hidden> writes:
> Others have asserted that "cdr returns the cdr" is a coherent
> description of cdr. They are thus implying that "cdr" is semantically
> different from "cdr", otherwise that description would be circular and
> vacuous.
Er, well they _are_ different in that sentence -- the first "cdr" is a
function, the second "cdr" is the name of part of a data-structure.
I guess this thread has become a bit overblown (this is a minor issue!),
but I agree that in some cases it might nice to describe the "list
meaning" of such functions as an addendum, to help beginners.
E.g.
Return the cdr of the cons-cell CONS. If CONS is nil, return nil.
Signal an error if CONS is not nil and not a cons cell.
See also `cdr-safe'.
When CONS is interpreted as a list, cdr returns the list tail
(the list with the first member removed).
-miles
--
Run away! Run away!
- Re: Documentation for car and cdr, (continued)
- Re: Documentation for car and cdr, Alan Mackenzie, 2006/01/25
- Re: Documentation for car and cdr, Bill Atkins, 2006/01/25
- Re: Documentation for car and cdr, Alan Mackenzie, 2006/01/25
- Re: Documentation for car and cdr, Bill Atkins, 2006/01/25
- Re: Documentation for car and cdr, David Kastrup, 2006/01/25
- Re: Documentation for car and cdr, Thien-Thi Nguyen, 2006/01/25
- Re: Documentation for car and cdr, Lennart Borgman, 2006/01/25
- Re: Documentation for car and cdr, Thien-Thi Nguyen, 2006/01/25
- RE: Documentation for car and cdr, Drew Adams, 2006/01/26
- RE: Documentation for car and cdr, Drew Adams, 2006/01/26
- Re: Documentation for car and cdr,
Miles Bader <=
- Re: Documentation for car and cdr, Miles Bader, 2006/01/25
- Re: Documentation for car and cdr, Lennart Borgman, 2006/01/25
- Re: Documentation for car and cdr, Alfred M\. Szmidt, 2006/01/25
- Re: Documentation for car and cdr, Thien-Thi Nguyen, 2006/01/25
- Re: Documentation for car and cdr, Alan Mackenzie, 2006/01/25
- Re: Documentation for car and cdr, Karl Chen, 2006/01/25
- Re: Documentation for car and cdr, Luc Teirlinck, 2006/01/25
- Re: Documentation for car and cdr, Eli Zaretskii, 2006/01/25
- Re: Documentation for car and cdr, Miles Bader, 2006/01/26
- Re: Documentation for car and cdr, Thien-Thi Nguyen, 2006/01/25