text_delta v1.1.0 TextDelta.Iterator
Iterator iterates over two sets of operations at the same time, ensuring next elements in the resulting stream are of equal length.
Summary
Types
A tuple representing the new head and tail operations of the two operation sets being iterated over
Individual set of operations
A set’s next scanned full or partial operation, and its resulting tail set
Two sets of operations to iterate
A type which is not to be sliced when iterating. Can be :insert
, :delete
or nil
Functions
Generates next cycle by iterating over given sets of operations
Types
A tuple representing the new head and tail operations of the two operation sets being iterated over.
Individual set of operations.
A set’s next scanned full or partial operation, and its resulting tail set.