mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(number-sequence): Shorten the code.
This commit is contained in:
parent
162eab5f18
commit
428c120917
@ -186,10 +186,9 @@ If TO is less than FROM, the value is nil."
|
||||
(setq to (1- from)))
|
||||
(setq to from))
|
||||
(let* ((list (make-list (- (1+ to) from) from))
|
||||
(tail (cdr list)))
|
||||
(while tail
|
||||
(setcar tail (setq from (1+ from)))
|
||||
(setq tail (cdr tail)))
|
||||
(tail list))
|
||||
(while (setq tail (cdr tail))
|
||||
(setcar tail (setq from (1+ from))))
|
||||
list))
|
||||
|
||||
(defun remove (elt seq)
|
||||
|
Loading…
Reference in New Issue
Block a user