Tail Call Optimization ·
Reuse the Frame
un
seel
.com · Tail position → jump · O(1) stack
Frames pushed
0
Accumulator
1
State
—
Regular: O(n) frames
Live frame
Tail call: reused frame
Accumulator
▶ Play
←
→
Unmute
↻
Un
seel
.com · Tail Call Optimization