Function: math-concat
math-concat is an autoloaded and byte-compiled function defined in
calc-misc.el.gz.
Signature
(math-concat V1 V2)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-misc.el.gz
;; Concatenate two vectors, or a vector and an object. [V O O] [Public]
;;;###autoload
(defun math-concat (v1 v2)
(if (stringp v1)
(concat v1 v2)
(require 'calc-ext)
(if (and (or (math-objvecp v1) (math-known-scalarp v1))
(or (math-objvecp v2) (math-known-scalarp v2)))
(append (if (and (math-vectorp v1)
(or (math-matrixp v1)
(not (math-matrixp v2))))
v1
(list 'vec v1))
(if (and (math-vectorp v2)
(or (math-matrixp v2)
(not (math-matrixp v1))))
(cdr v2)
(list v2)))
(list '| v1 v2))))