moonpool/dev/ocaml/Diffing/Define/Left_variadic/index.html
2023-08-28 17:11:38 +00:00

2 lines
No EOL
2.7 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Left_variadic (ocaml.Diffing.Define.Left_variadic)</title><link rel="stylesheet" href="../../../../_odoc-theme/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.2.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> <a href="../../../index.html">ocaml</a> &#x00BB; <a href="../../index.html">Diffing</a> &#x00BB; <a href="../index.html">Define</a> &#x00BB; Left_variadic</nav><header class="odoc-preamble"><h1>Module <code><span>Define.Left_variadic</span></code></h1></header><nav class="odoc-toc"><ul><li><a href="#variadic-diffing">Variadic diffing</a></li><li><a href="#parameters">Parameters</a></li><li><a href="#signature">Signature</a></li></ul></nav><div class="odoc-content"><h2 id="variadic-diffing"><a href="#variadic-diffing" class="anchor"></a>Variadic diffing</h2><p>Variadic diffing allows to expand the lists being diffed during diffing. in one specific direction.</p><h2 id="parameters"><a href="#parameters" class="anchor"></a>Parameters</h2><div class="odoc-spec"><div class="spec parameter anchored" id="argument-1-_"><a href="#argument-1-_" class="anchor"></a><code><span><span class="keyword">module</span> </span><span><a href="argument-1-_/index.html">_</a></span><span> : <a href="../module-type-Parameters/index.html">Parameters</a> <span class="keyword">with</span> <span><span class="keyword">type</span> <a href="../module-type-Parameters/index.html#type-update_result">update_result</a> := <a href="../argument-1-D/index.html#type-state">D.state</a> * <span><a href="../argument-1-D/index.html#type-left">D.left</a> array</span></span></span></code></div></div><h2 id="signature"><a href="#signature" class="anchor"></a>Signature</h2><div class="odoc-spec"><div class="spec value anchored" id="val-diff"><a href="#val-diff" class="anchor"></a><code><span><span class="keyword">val</span> diff : <span><a href="../argument-1-D/index.html#type-state">D.state</a> <span class="arrow">&#45;&gt;</span></span> <span><span><a href="../argument-1-D/index.html#type-left">D.left</a> array</span> <span class="arrow">&#45;&gt;</span></span> <span><span><a href="../argument-1-D/index.html#type-right">D.right</a> array</span> <span class="arrow">&#45;&gt;</span></span> <a href="../index.html#type-patch">patch</a></span></code></div><div class="spec-doc"><p><code>diff state l r</code> computes the optimal patch between <code>l</code> and <code>r</code>, using the initial state <code>state</code>.</p></div></div></div></body></html>