package ocaml-base-compiler

Part of the compiler
  1. Overview
  2. Docs
Official release 4.14.5

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml_4.14.5.tar.gz
sha256=608c30e5b97fc4568741db8e5e674a5a081ef08a3c4d17172deb1dc6c8825037

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

Parameter Left_variadic._

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 * D.left array

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