cons

(cons obj1 obj2)


Description:

Construct a pair from two objects.


Arguments:

           obj1 -- any scheme object

           obj2 -- any scheme object


Returns: pair


Examples:

(cons 5 10)                    => (5 . 10)

(cons 5 (cons 6 7)             => (5 . (6 . 7))

(cons 5 (cons 6 (cons 7 '()))) => '(5 6 7)



Back to index