diff options
Diffstat (limited to 'doc/lispref/lists.texi')
| -rw-r--r-- | doc/lispref/lists.texi | 33 |
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}))} | |||
| 362 | or @code{(nthcdr 2 @var{cons-cell})}. | 362 | or @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 | ||
| 389 | In 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}, | ||
| 391 | where 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 | ||
| 393 | elements of a list, respectively. @file{cl-lib} provides the same | ||
| 394 | under the names @code{cl-second}, @code{cl-third}, and | ||
| 395 | @code{cl-fourth}. @xref{List Functions,,, cl, Common Lisp | ||
| 396 | Extensions}. | ||
| 397 | |||
| 365 | @defun butlast x &optional n | 398 | @defun butlast x &optional n |
| 366 | This function returns the list @var{x} with the last element, | 399 | This function returns the list @var{x} with the last element, |
| 367 | or the last @var{n} elements, removed. If @var{n} is greater | 400 | or the last @var{n} elements, removed. If @var{n} is greater |