package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 4.14.3

Install

dune-project
 Dependency

Authors

Maintainers

Sources

4.14.3.tar.gz
sha256=e510689183b2d62b0a7513ea7e47be80ddb9173377a2df436dbc1ca927a64689

doc/ocamlcommon/Diffing/Define/Simple/argument-1-_/index.html

Parameter Simple._

val weight : change -> int

weight ch returns the weight of the change ch. Used to find the smallest patch.

val test : D.state -> D.left -> D.right -> (D.eq, D.diff) result

test st xl xr tests if the elements xl and xr are co mpatible (Ok) or not (Error).

val update : change -> D.state -> D.state

update ch st returns the new state after applying a change. The update_result type also contains expansions in the variadic case.