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: Alex Schroeder
Subject: Re: Documentation for car and cdr
Date: Tue, 31 Jan 2006 22:00:13 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin)

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

-- 
http://www.emacswiki.org/alex/





reply via email to

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