Function: seq-into
seq-into is a byte-compiled function defined in seq.el.gz.
Signature
(seq-into SEQUENCE TYPE)
Documentation
Concatenate the elements of SEQUENCE into a sequence of type TYPE.
TYPE can be one of the following symbols: vector, string or
list. This does not modify SEQUENCE.
Other relevant functions are documented in the sequence group.
Shortdoc
;; sequence
(seq-into '(1 2 3) 'vector)
=> [1 2 3]
Implementations
(seq-into SEQUENCE TYPE) in `seq.el'.
Undocumented
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/seq.el.gz
(cl-defgeneric seq-into (sequence type)
"Concatenate the elements of SEQUENCE into a sequence of type TYPE.
TYPE can be one of the following symbols: `vector', `string' or
`list'. This does not modify SEQUENCE."
(pcase type
(`vector (seq--into-vector sequence))
(`string (seq--into-string sequence))
(`list (seq--into-list sequence))
(_ (error "Not a sequence type name: %S" type))))