set_head


set_head(p, v)
      

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

Examples:


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

Also see:

pair
set_tail
set_head
tail
car
cdr
first
rest


Core Module Index | Contents