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

2 lines
No EOL
2.9 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>_ (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; <a href="../index.html">Left_variadic</a> &#x00BB; _</nav><header class="odoc-preamble"><h1>Parameter <code><span>Left_variadic._</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-weight"><a href="#val-weight" class="anchor"></a><code><span><span class="keyword">val</span> weight : <span><a href="../../index.html#type-change">change</a> <span class="arrow">&#45;&gt;</span></span> int</span></code></div><div class="spec-doc"><p><code>weight ch</code> returns the weight of the change <code>ch</code>. Used to find the smallest patch.</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-test"><a href="#val-test" class="anchor"></a><code><span><span class="keyword">val</span> test : <span><a href="../../argument-1-D/index.html#type-state">D.state</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../../argument-1-D/index.html#type-left">D.left</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../../argument-1-D/index.html#type-right">D.right</a> <span class="arrow">&#45;&gt;</span></span> <span><span>(<a href="../../argument-1-D/index.html#type-eq">D.eq</a>, <a href="../../argument-1-D/index.html#type-diff">D.diff</a>)</span> <a href="../../../../Stdlib/index.html#type-result">result</a></span></span></code></div><div class="spec-doc"><p><code>test st xl xr</code> tests if the elements <code>xl</code> and <code>xr</code> are co mpatible (<code>Ok</code>) or not (<code>Error</code>).</p></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-update"><a href="#val-update" class="anchor"></a><code><span><span class="keyword">val</span> update : <span><a href="../../index.html#type-change">change</a> <span class="arrow">&#45;&gt;</span></span> <span><a href="../../argument-1-D/index.html#type-state">D.state</a> <span class="arrow">&#45;&gt;</span></span> <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></code></div><div class="spec-doc"><p><code>update ch st</code> returns the new state after applying a change. The <code>update_result</code> type also contains expansions in the variadic case.</p></div></div></div></body></html>