module type Parameters =sig
..end
type
update_result
val weight : Diffing.Define.change -> int
weight ch
傳回變更 ch
的權重。用於尋找最小的修補程式。
val test : D.state -> D.left -> D.right -> (D.eq, D.diff) result
test st xl xr
測試元素 xl
和 xr
是否相容(Ok
)或不相容(Error
)。
val update : Diffing.Define.change -> D.state -> update_result
update ch st
傳回套用變更後的狀態。 update_result
類型在可變參數的情況下也包含擴展。