Insert values into the table at a given index.
If index is larger than current buffer, appends to end of file.
:= {
original : List(a),
added : List(a),
table : List(Entry),
}
Represents a Piece table which is typically used to represent a text document while it is edited in a text editor.
Insert values into the table at a given index.
If index is larger than current buffer, appends to end of file.
Calculate the total length when buffer indexes will be converted to a list.
Delete the value at index.
If index is out of range this has no effect.
Fuse the original and added buffers into a single list.
:= [Add(Span), Original(Span)]
Represents an index into the original or added buffer.