Summary
Destructive list functions
js
set_head(p, x);
set_tail(p, x);
Array indexing
js
A[i] = x;
Concept
Variable
js
let x = 0; // initial value
x = 5; // new value
Reassigning a new value to an already in use symbol
Application
Creation of circular lists
- set_tail of the pair to the head of the pair