mutable data

Complete

Concept

Reassigning a new value to an already in use symbol

js
let x = 0; // initial value
x = 5; // new value

Application

Destructive list functions

js
set_head(p, x);
set_tail(p, x);

Array assignment

js
A[i] = x;

Circular list

js
set_tail(p, p);