aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref/lists.texi
diff options
context:
space:
mode:
authorAlan Mackenzie2017-02-12 10:59:03 +0000
committerAlan Mackenzie2017-02-12 10:59:03 +0000
commitf4d5b687150810129b7a1d5b006e31ccf82b691b (patch)
tree4229b13800349032697daae3904dc3773e6b7a80 /doc/lispref/lists.texi
parentd5514332d4a6092673ce1f78fadcae0c57f7be64 (diff)
parent148100d98319499f0ac6f57b8be08cbd14884a5c (diff)
downloademacs-comment-cache.tar.gz
emacs-comment-cache.zip
Merge branch 'master' into comment-cachecomment-cache
Diffstat (limited to 'doc/lispref/lists.texi')
-rw-r--r--doc/lispref/lists.texi33
1 files changed, 33 insertions, 0 deletions
diff --git a/doc/lispref/lists.texi b/doc/lispref/lists.texi
index bd7d85aa189..8eab2818f97 100644
--- a/doc/lispref/lists.texi
+++ b/doc/lispref/lists.texi
@@ -362,6 +362,39 @@ This is the same as @code{(cdr (cdr @var{cons-cell}))}
362or @code{(nthcdr 2 @var{cons-cell})}. 362or @code{(nthcdr 2 @var{cons-cell})}.
363@end defun 363@end defun
364 364
365@findex caaar
366@findex caadr
367@findex cadar
368@findex caddr
369@findex cdaar
370@findex cdadr
371@findex cddar
372@findex cdddr
373@findex caaaar
374@findex caaadr
375@findex caadar
376@findex caaddr
377@findex cadaar
378@findex cadadr
379@findex caddar
380@findex cadddr
381@findex cdaaar
382@findex cdaadr
383@findex cdadar
384@findex cdaddr
385@findex cddaar
386@findex cddadr
387@findex cdddar
388@findex cddddr
389In addition to the above, 24 additional compositions of @code{car} and
390@code{cdr} are defined as @code{c@var{xxx}r} and @code{c@var{xxxx}r},
391where each @code{@var{x}} is either @code{a} or @code{d}. @code{cadr},
392@code{caddr}, and @code{cadddr} pick out the second, third or fourth
393elements of a list, respectively. @file{cl-lib} provides the same
394under the names @code{cl-second}, @code{cl-third}, and
395@code{cl-fourth}. @xref{List Functions,,, cl, Common Lisp
396Extensions}.
397
365@defun butlast x &optional n 398@defun butlast x &optional n
366This function returns the list @var{x} with the last element, 399This function returns the list @var{x} with the last element,
367or the last @var{n} elements, removed. If @var{n} is greater 400or the last @var{n} elements, removed. If @var{n} is greater