1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-05 22:20:24 -08:00

* lisp/emacs-lisp/seq.el (seq-concatenate): Accept non-sequencep sequences

This commit is contained in:
Stefan Monnier 2022-03-07 09:59:43 -05:00
parent 418e5da5d3
commit d67ca6739c

View file

@ -299,6 +299,7 @@ sorted. FUNCTION must be a function of one argument."
TYPE must be one of following symbols: vector, string or list.
\n(fn TYPE SEQUENCE...)"
(setq sequences (mapcar #'seq-into-sequence sequences))
(pcase type
('vector (apply #'vconcat sequences))
('string (apply #'concat sequences))