comparison lisp/subr.el @ 50417:c047e3116b28

(number-sequence): Shorten the code.
author Kenichi Handa <handa@m17n.org>
date Thu, 03 Apr 2003 02:49:16 +0000
parents b040b4e36f5e
children 6ce9db7934cb
comparison
equal deleted inserted replaced
50416:d6c0d7f63e86 50417:c047e3116b28
184 (if to 184 (if to
185 (if (< to from) 185 (if (< to from)
186 (setq to (1- from))) 186 (setq to (1- from)))
187 (setq to from)) 187 (setq to from))
188 (let* ((list (make-list (- (1+ to) from) from)) 188 (let* ((list (make-list (- (1+ to) from) from))
189 (tail (cdr list))) 189 (tail list))
190 (while tail 190 (while (setq tail (cdr tail))
191 (setcar tail (setq from (1+ from))) 191 (setcar tail (setq from (1+ from))))
192 (setq tail (cdr tail)))
193 list)) 192 list))
194 193
195 (defun remove (elt seq) 194 (defun remove (elt seq)
196 "Return a copy of SEQ with all occurrences of ELT removed. 195 "Return a copy of SEQ with all occurrences of ELT removed.
197 SEQ must be a list, vector, or string. The comparison is done with `equal'." 196 SEQ must be a list, vector, or string. The comparison is done with `equal'."