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: Kevin Rodgers
Subject: Re: Documentation for car and cdr
Date: Tue, 31 Jan 2006 14:30:25 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Alex Schroeder wrote:
Ken Manheimer <address@hidden> writes:


 (car (cons 'x '(a b c))) ==> 'x


I like examples in doc strings.  I agree with those people saying that
people not knowing about cons cells need to be able to use C-h f and
get something that helps them learn the language.  This is how I
learnt the language.  I'd use the following two simple examples:

    (car '(a . b)) ==> 'a
    (car '(a b c)) ==> 'a

In all cases, the quote on the right hand side of ==> is incorrect.

Also, the notation is incorrect: see `(elisp)Evaluation Notation'

'a == (quote a) => a

Pedagogically yours,
--
Kevin Rodgers





reply via email to

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