Function: list

list is a function defined in alloc.c.

Signature

(list &rest OBJECTS)

Documentation

Return a newly created list with specified arguments as elements.

Allows any number of arguments, including zero.

Other relevant functions are documented in the list group.

View in manual

Probably introduced at or before Emacs version 1.2.

Shortdoc

;; list
(list 1 2 3)
    => (1 2 3)

Aliases

values(var)/values(fun) (obsolete since 27.1) hydra--imf cl-values

Source Code

// Defined in /usr/src/emacs/src/alloc.c
{
  register Lisp_Object val;
  val = Qnil;

  while (nargs > 0)
    {
      nargs--;
      val = Fcons (args[nargs], val);
    }
  return val;
}