Function: append

append is a function defined in fns.c.

Signature

(append &rest SEQUENCES)

Documentation

Concatenate all the arguments and make the result a list.

The result is a list whose elements are the elements of all the arguments. Each argument may be a list, vector or string. The last argument is not copied, just used as the tail of the new list.

Other relevant functions are documented in the vector and list groups.

Probably introduced at or before Emacs version 18.

Shortdoc

;; list
(append '("foo" "bar") '("zot"))
    => ("foo" "bar" "zot")
;; vector
(append [1 2] nil)
    => (1 2)

Aliases

-concat

Source Code

// Defined in /usr/src/emacs/src/fns.c
{
  return concat (nargs, args, Lisp_Cons, 1);
}