cons

(cons first_element list)

The cons function constructs a list by combining first_element and list.

If the second argument is an atom, the function constructs a dotted pair list. Functions like entmake or entmod require this kind of list.

Examples

: (cons 8 "0")

(8 . "0")

: (cons '1 '(2 3 4))

(1 2 3 4)

: (cons '(1) '(2 3 4))

((1) 2 3 4)