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.
v
p
void
let p = 10:20 set_head(p, 100) p // 100:20
Core Module Index | Contents