Mercurial > emacs
changeset 19585:3d2741d4fabc
(last*): Definition deleted.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 27 Aug 1997 22:35:00 +0000 |
parents | 17db1ee36bbb |
children | 963726a261c3 |
files | lisp/emacs-lisp/cl.el |
diffstat | 1 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/emacs-lisp/cl.el Wed Aug 27 22:34:30 1997 +0000 +++ b/lisp/emacs-lisp/cl.el Wed Aug 27 22:35:00 1997 +0000 @@ -499,16 +499,16 @@ "Return the `cdr' of the `cdr' of the `cdr' of the `cdr' of X." (cdr (cdr (cdr (cdr x))))) -(defun last* (x &optional n) - "Returns the last link in the list LIST. -With optional argument N, returns Nth-to-last link (default 1)." - (if n - (let ((m 0) (p x)) - (while (consp p) (incf m) (pop p)) - (if (<= n 0) p - (if (< n m) (nthcdr (- m n) x) x))) - (while (consp (cdr x)) (pop x)) - x)) +;;(defun last* (x &optional n) +;; "Returns the last link in the list LIST. +;;With optional argument N, returns Nth-to-last link (default 1)." +;; (if n +;; (let ((m 0) (p x)) +;; (while (consp p) (incf m) (pop p)) +;; (if (<= n 0) p +;; (if (< n m) (nthcdr (- m n) x) x))) +;; (while (consp (cdr x)) (pop x)) +;; x)) (defun butlast (x &optional n) "Returns a copy of LIST with the last N elements removed."