chickadee » scheme » cons

(cons obj[1] obj[2])procedure

Returns a newly allocated pair whose car is obj[1] and whose cdr is obj[2]. The pair is guaranteed to be different (in the sense of eqv?) from every existing object.

(cons 'a '())                   ===>  (a)
(cons '(a) '(b c d))            ===>  ((a) b c d)
(cons "a" '(b c))               ===>  ("a" b c)
(cons 'a 3)                     ===>  (a . 3)
(cons '(a b) 'c)                ===>  ((a b) . c)