set_tail


set_tail(p, v)
      

Assign the value v to the tail of the pair p. Return void. Raise an error if p is not a valid pair.

Examples:


let p = 10:20
set_tail(p, 100)
p
// 10:100
      

Also see:

pair
set_head
set_head
tail
car
cdr
first
rest


Core Module Index | Contents