The expected length of the document before applied.
Array of basic operations.
The expected length of the document after applied.
StaticcomposeStaticfromCreates an Operation object from an array of BasicOperation objects.
An array of BasicOperation objects.
The created Operation object.
StatictransformTakes two operations a and b that happened concurrently and
produces two operations a' and b' such that
apply(apply(doc, a), b') = apply(apply(doc, b), a').
a and b should be concurrent operations, not sequential.
This function is commutative, i.e. transform(a, b) === transform(b, a).reverse().
The transformed operations [a', b'].
Represents an operation in the operational transformation.