Mercurial > emacs
changeset 36931:508fd85ab816
expurgate last*
author | Dave Love <fx@gnu.org> |
---|---|
date | Wed, 21 Mar 2001 20:58:57 +0000 |
parents | ac0ad12128b7 |
children | 798523f71b16 |
files | man/cl.texi |
diffstat | 1 files changed, 7 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/man/cl.texi Wed Mar 21 17:13:05 2001 +0000 +++ b/man/cl.texi Wed Mar 21 20:58:57 2001 +0000 @@ -280,7 +280,7 @@ member* assoc* rassoc* get* remove* delete* mapcar* sort* floor* ceiling* truncate* round* -mod* rem* random* last* +mod* rem* random* @end example Internal function and variable names in the package are prefixed @@ -3795,10 +3795,11 @@ @end defun @defun mapc function seq &rest more-seqs -This function is like @code{mapcar*}, except that the values -returned by @var{function} are ignored and thrown away rather -than being collected into a list. The return value of @code{mapc} -is @var{seq}, the first sequence. +This function is like @code{mapcar*}, except that the values returned +by @var{function} are ignored and thrown away rather than being +collected into a list. The return value of @code{mapc} is @var{seq}, +the first sequence. This function is more general than the Emacs +primitive @code{mapc}. @end defun @defun mapl function list &rest more-lists @@ -4147,7 +4148,7 @@ The functions described here operate on lists. @menu -* List Functions:: `caddr', `first', `last*', `list*', etc. +* List Functions:: `caddr', `first', `list*', etc. * Substitution of Expressions:: `subst', `sublis', etc. * Lists as Sets:: `member*', `adjoin', `union', etc. * Association Lists:: `assoc*', `rassoc*', `acons', `pairlis' @@ -4193,20 +4194,6 @@ @code{length} function would get stuck if given a circular list.) @end defun -@defun last* x &optional n -This function returns the last cons, or the @var{n}th-to-last cons, -of the list @var{x}. If @var{n} is omitted it defaults to 1. -The ``last cons'' means the first cons cell of the list whose -@code{cdr} is not another cons cell. (For normal lists, the -@code{cdr} of the last cons will be @code{nil}.) This function -returns @code{nil} if @var{x} is @code{nil} or shorter than -@var{n}. Note that the last @emph{element} of the list is -@code{(car (last @var{x}))}. - -The Emacs function @code{last} does the same thing -except that it does not handle the optional argument @var{n}. -@end defun - @defun list* arg &rest others This function constructs a list of its arguments. The final argument becomes the @code{cdr} of the last cell constructed.