mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-09 07:40:39 -08:00
Add more car/cdr examples to shortdoc
* lisp/emacs-lisp/shortdoc.el (list): Add more car/cdr examples.
This commit is contained in:
parent
22a5482ab6
commit
8f5738eb8f
1 changed files with 6 additions and 2 deletions
|
|
@ -503,9 +503,13 @@ There can be any number of :example/:result elements."
|
|||
(flatten-tree
|
||||
:eval (flatten-tree '(1 (2 3) 4)))
|
||||
(car
|
||||
:eval (car '(one two three)))
|
||||
:eval (car '(one two three))
|
||||
:eval (car '(one . two))
|
||||
:eval (car nil))
|
||||
(cdr
|
||||
:eval (cdr '(one two three)))
|
||||
:eval (cdr '(one two three))
|
||||
:eval (cdr '(one . two))
|
||||
:eval (cdr nil))
|
||||
(last
|
||||
:eval (last '(one two three)))
|
||||
(butlast
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue