diff options
| -rw-r--r-- | lisp/emacs-lisp/seq.el | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el index 8dc91471312..751c18f4aae 100644 --- a/lisp/emacs-lisp/seq.el +++ b/lisp/emacs-lisp/seq.el | |||
| @@ -417,13 +417,7 @@ If no element is found, return nil." | |||
| 417 | (nreverse result))) | 417 | (nreverse result))) |
| 418 | 418 | ||
| 419 | (cl-defmethod seq-drop-while (pred (list list)) | 419 | (cl-defmethod seq-drop-while (pred (list list)) |
| 420 | "Optimized implementation of `seq-drop-while' for lists" | 420 | "Optimized implementation of `seq-drop-while' for lists." |
| 421 | (while (and list (funcall pred (car list))) | ||
| 422 | (setq list (cdr list))) | ||
| 423 | list) | ||
| 424 | |||
| 425 | (cl-defmethod seq-drop-while (pred (list list)) | ||
| 426 | "Optimized implementation of `seq-drop-while' for lists" | ||
| 427 | (while (and list (funcall pred (car list))) | 421 | (while (and list (funcall pred (car list))) |
| 428 | (setq list (cdr list))) | 422 | (setq list (cdr list))) |
| 429 | list) | 423 | list) |