PAIRMUTATORS - nus-cs4215/x-slang-t1-xz-jj GitHub Wiki

The following are the predeclared names of PAIRMUTATORS, in alphabetical order.

List of predeclared names

set_head

set_tail

Predeclared Names

set_head


set_head(p, x)

Parameters

p : pair : given pair

x : value : given value

changes the pair p such that its head is x.

Returns

None

set_tail


set_tail(p, x)

Parameters

p : pair : given pair

x : value : given value

changes the pair p such that its tail is x.

Returns

None