Same edit, three data structures

Piece Table Diagram: Editing Text Without Moving It, Beside a Gap Buffer and a Flat Array

Type and delete text in a simulated editor and watch its piece table track original and add buffers with a linked list of piece descriptors, instead of copying the whole document on every keystroke.

Made with 🟠 Blender