package ocaml-compiler
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Official release of OCaml 5.4.1
Install
dune-project
Dependency
Authors
Maintainers
Sources
ocaml-5.4.1.tar.gz
sha256=d4528517aaa1a44b8e2b1bc109a1ed0a5e0014f3ddc4feb8906b11a7e063e89a
doc/compiler-libs.common/Diffing_with_keys/index.html
Module Diffing_with_keys
When diffing lists where each element has a distinct key, we can refine the diffing patch by introducing two composite edit moves: swaps and moves.
Swaps exchange the position of two elements. Swap cost is set to 2 * change - epsilon. Moves change the position of one element. Move cost is set to delete + addition - epsilon.
When the cost delete + addition is greater than change and with those specific weights, the optimal patch with Swaps and Moves can be computed directly and cheaply from the original optimal patch.
val with_pos : 'a list -> 'a with_pos listtype ('l, 'r, 'diff) change = | Change of ('l, 'r, 'diff) mismatch| Swap of {}| Move of {}| Insert of {}| Delete of {}
This specialized version of changes introduces two composite changes: Move and Swap
val prefix : ('l, 'r, 'diff) change Format_doc.printermodule Define (D : Diffing.Defs with type eq := unit) : sig ... end sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>