mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-17 08:06:43 -05:00
2 lines
No EOL
2.9 KiB
HTML
2 lines
No EOL
2.9 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>_ (ocaml.Diffing.Define.Right_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> » <a href="../../../index.html">Diffing</a> » <a href="../../index.html">Define</a> » <a href="../index.html">Right_variadic</a> » _</nav><header class="odoc-preamble"><h1>Parameter <code><span>Right_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">-></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">-></span></span> <span><a href="../../argument-1-D/index.html#type-left">D.left</a> <span class="arrow">-></span></span> <span><a href="../../argument-1-D/index.html#type-right">D.right</a> <span class="arrow">-></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">-></span></span> <span><a href="../../argument-1-D/index.html#type-state">D.state</a> <span class="arrow">-></span></span> <a href="../../argument-1-D/index.html#type-state">D.state</a> * <span><a href="../../argument-1-D/index.html#type-right">D.right</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> |