set-cdr!

(set-cdr! pair obj)


Description:

Stores obj in the cdr field of pair


Arguments:

           pair -- a cons pair

            obj -- a scheme object


Returns: pair


Examples:

(define a (cons 'b 'c))

(print a)

(set-cdr! a 'd)         => (b . d)



Back to index