aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/seq.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/seq.el b/lisp/emacs-lisp/seq.el
index 0aa0f095969..2d20de61711 100644
--- a/lisp/emacs-lisp/seq.el
+++ b/lisp/emacs-lisp/seq.el
@@ -249,7 +249,7 @@ TYPE must be one of following symbols: vector, string or list.
249 (`vector (apply #'vconcat seqs)) 249 (`vector (apply #'vconcat seqs))
250 (`string (apply #'concat seqs)) 250 (`string (apply #'concat seqs))
251 (`list (apply #'append (append seqs '(nil)))) 251 (`list (apply #'append (append seqs '(nil))))
252 (t (error "Not a sequence type name: %S" type)))) 252 (_ (error "Not a sequence type name: %S" type))))
253 253
254(defun seq-mapcat (function seq &optional type) 254(defun seq-mapcat (function seq &optional type)
255 "Concatenate the result of applying FUNCTION to each element of SEQ. 255 "Concatenate the result of applying FUNCTION to each element of SEQ.
@@ -323,7 +323,7 @@ TYPE can be one of the following symbols: vector, string or list."
323 (`vector (vconcat seq)) 323 (`vector (vconcat seq))
324 (`string (concat seq)) 324 (`string (concat seq))
325 (`list (append seq nil)) 325 (`list (append seq nil))
326 (t (error "Not a sequence type name: %S" type)))) 326 (_ (error "Not a sequence type name: %S" type))))
327 327
328(defun seq--drop-list (list n) 328(defun seq--drop-list (list n)
329 "Return a list from LIST without its first N elements. 329 "Return a list from LIST without its first N elements.
@@ -379,7 +379,7 @@ This is an optimization for lists in `seq-take-while'."
379 ,(seq--elt-safe args (1+ index))) 379 ,(seq--elt-safe args (1+ index)))
380 bindings) 380 bindings)
381 (setq rest-marker t))) 381 (setq rest-marker t)))
382 (t 382 (_
383 (push `(app (pcase--flip seq--elt-safe ,index) ,name) bindings)))) 383 (push `(app (pcase--flip seq--elt-safe ,index) ,name) bindings))))
384 (setq index (1+ index))) 384 (setq index (1+ index)))
385 bindings)) 385 bindings))
@@ -413,7 +413,7 @@ BINDINGS."
413 (seq-drop ,seq ,index)) 413 (seq-drop ,seq ,index))
414 bindings) 414 bindings)
415 (setq rest-marker t))) 415 (setq rest-marker t)))
416 (t 416 (_
417 (push `(,name (seq--elt-safe ,seq ,index)) bindings)))) 417 (push `(,name (seq--elt-safe ,seq ,index)) bindings))))
418 (setq index (1+ index))) 418 (setq index (1+ index)))
419 bindings)) 419 bindings))