diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-08-27 22:35:00 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-08-27 22:35:00 +0000 |
commit | f9efebcae0faaa4f28b494f7f31a6e3f150b67d6 (patch) | |
tree | 05c8379e8fd0b34c1a2e8c379a070c36c34a9357 /lisp/emacs-lisp | |
parent | 369fba5fb7725e65fd426032397fb854614a3ae9 (diff) | |
download | emacs-f9efebcae0faaa4f28b494f7f31a6e3f150b67d6.tar.gz emacs-f9efebcae0faaa4f28b494f7f31a6e3f150b67d6.tar.bz2 emacs-f9efebcae0faaa4f28b494f7f31a6e3f150b67d6.zip |
(last*): Definition deleted.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/cl.el | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lisp/emacs-lisp/cl.el b/lisp/emacs-lisp/cl.el index 80db4d9555d..fbfe8808e28 100644 --- a/lisp/emacs-lisp/cl.el +++ b/lisp/emacs-lisp/cl.el @@ -499,16 +499,16 @@ SEQ, this is like `mapcar'. With several, it is like the Common Lisp "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." |