emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] * lisp/emacs-lisp/seq.el (seq-drop): Use nthcdr for lists.


From: Nicolas Petton
Subject: Re: [PATCH] * lisp/emacs-lisp/seq.el (seq-drop): Use nthcdr for lists.
Date: Sun, 12 Jun 2016 12:42:26 +0200
User-agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/25.1.50.2 (x86_64-unknown-linux-gnu)

Mark Oteiza <address@hidden> writes:

Hi Mark,


>  (cl-defmethod seq-drop ((list list) n)
>    "Optimized implementation of `seq-drop' for lists."
> -  (while (and list (> n 0))
> -    (setq list (cdr list)
> -          n (1- n)))
> -  list)
> +  (nthcdr n list))

Thanks, I applied the patch in both Emacs and ELPA.

Cheers,
Nico

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]