ocaml-containers/3.4/containers-data/CCBijection/Make/index.html
2021-05-03 13:35:10 -04:00

2 lines
No EOL
9.3 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>Make (containers-data.CCBijection.Make)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div class="content"><header><nav><a href="../index.html">Up</a> <a href="../../index.html">containers-data</a> &#x00BB; <a href="../index.html">CCBijection</a> &#x00BB; Make</nav><h1>Module <code>CCBijection.Make</code></h1></header><h3 class="heading">Parameters</h3><ul><li><code><a href="argument-1-L/index.html">L</a> : <a href="../index.html#module-type-OrderedType">OrderedType</a></code></li><li><code><a href="argument-2-R/index.html">R</a> : <a href="../index.html#module-type-OrderedType">OrderedType</a></code></li></ul><h3 class="heading">Signature</h3><dl><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> t</code></dt><dt class="spec type" id="type-left"><a href="#type-left" class="anchor"></a><code><span class="keyword">type</span> left</code><code> = <a href="argument-1-L/index.html#type-t">L.t</a></code></dt><dt class="spec type" id="type-right"><a href="#type-right" class="anchor"></a><code><span class="keyword">type</span> right</code><code> = <a href="argument-2-R/index.html#type-t">R.t</a></code></dt></dl><dl><dt class="spec value" id="val-empty"><a href="#val-empty" class="anchor"></a><code><span class="keyword">val</span> empty : <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-is_empty"><a href="#val-is_empty" class="anchor"></a><code><span class="keyword">val</span> is_empty : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-equal"><a href="#val-equal" class="anchor"></a><code><span class="keyword">val</span> equal : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dt class="spec value" id="val-compare"><a href="#val-compare" class="anchor"></a><code><span class="keyword">val</span> compare : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> int</code></dt><dt class="spec value" id="val-add"><a href="#val-add" class="anchor"></a><code><span class="keyword">val</span> add : <a href="index.html#type-left">left</a> <span>&#45;&gt;</span> <a href="index.html#type-right">right</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>Add <code>left</code> and <code>right</code> correspondence to bijection such that <code>left</code> and <code>right</code> are unique in their respective sets and only correspond to each other.</p></dd></dl><dl><dt class="spec value" id="val-cardinal"><a href="#val-cardinal" class="anchor"></a><code><span class="keyword">val</span> cardinal : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> int</code></dt><dd><p>Number of bindings. O(n) time.</p></dd></dl><dl><dt class="spec value" id="val-mem"><a href="#val-mem" class="anchor"></a><code><span class="keyword">val</span> mem : <a href="index.html#type-left">left</a> <span>&#45;&gt;</span> <a href="index.html#type-right">right</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>Check both sides for key membership.</p></dd></dl><dl><dt class="spec value" id="val-mem_left"><a href="#val-mem_left" class="anchor"></a><code><span class="keyword">val</span> mem_left : <a href="index.html#type-left">left</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>Check for membership of correspondence using <code>left</code> key.</p></dd></dl><dl><dt class="spec value" id="val-mem_right"><a href="#val-mem_right" class="anchor"></a><code><span class="keyword">val</span> mem_right : <a href="index.html#type-right">right</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> bool</code></dt><dd><p>Check for membership of correspondence using <code>right</code> key.</p></dd></dl><dl><dt class="spec value" id="val-find_left"><a href="#val-find_left" class="anchor"></a><code><span class="keyword">val</span> find_left : <a href="index.html#type-left">left</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-right">right</a></code></dt><dd><dl><dt>raises Not_found</dt><dd><p>if left is not found.</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-find_right"><a href="#val-find_right" class="anchor"></a><code><span class="keyword">val</span> find_right : <a href="index.html#type-right">right</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-left">left</a></code></dt><dd><dl><dt>raises Not_found</dt><dd><p>if right is not found.</p></dd></dl></dd></dl><dl><dt class="spec value" id="val-remove"><a href="#val-remove" class="anchor"></a><code><span class="keyword">val</span> remove : <a href="index.html#type-left">left</a> <span>&#45;&gt;</span> <a href="index.html#type-right">right</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>Remove the <code>left</code>, <code>right</code> binding if it exists. Return the same bijection otherwise.</p></dd></dl><dl><dt class="spec value" id="val-remove_left"><a href="#val-remove_left" class="anchor"></a><code><span class="keyword">val</span> remove_left : <a href="index.html#type-left">left</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>Remove the binding with <code>left</code> key if it exists. Return the same bijection otherwise.</p></dd></dl><dl><dt class="spec value" id="val-remove_right"><a href="#val-remove_right" class="anchor"></a><code><span class="keyword">val</span> remove_right : <a href="index.html#type-right">right</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dd><p>Remove the binding with <code>right</code> key if it exists. Return the same bijection otherwise.</p></dd></dl><dl><dt class="spec value" id="val-list_left"><a href="#val-list_left" class="anchor"></a><code><span class="keyword">val</span> list_left : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><span>(<a href="index.html#type-left">left</a> * <a href="index.html#type-right">right</a>)</span> list</span></code></dt><dd><p>Return the bindings as a list of (<code>left</code>, <code>right</code>) values.</p></dd></dl><dl><dt class="spec value" id="val-list_right"><a href="#val-list_right" class="anchor"></a><code><span class="keyword">val</span> list_right : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><span>(<a href="index.html#type-right">right</a> * <a href="index.html#type-left">left</a>)</span> list</span></code></dt><dd><p>Return the bindings as a list of <code>(right, left)</code> values.</p></dd></dl><dl><dt class="spec value" id="val-add_iter"><a href="#val-add_iter" class="anchor"></a><code><span class="keyword">val</span> add_iter : <span><span>(<a href="index.html#type-left">left</a> * <a href="index.html#type-right">right</a>)</span> <a href="../index.html#type-iter">iter</a></span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_iter"><a href="#val-of_iter" class="anchor"></a><code><span class="keyword">val</span> of_iter : <span><span>(<a href="index.html#type-left">left</a> * <a href="index.html#type-right">right</a>)</span> <a href="../index.html#type-iter">iter</a></span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-to_iter"><a href="#val-to_iter" class="anchor"></a><code><span class="keyword">val</span> to_iter : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><span>(<a href="index.html#type-left">left</a> * <a href="index.html#type-right">right</a>)</span> <a href="../index.html#type-iter">iter</a></span></code></dt><dt class="spec value" id="val-add_list"><a href="#val-add_list" class="anchor"></a><code><span class="keyword">val</span> add_list : <span><span>(<a href="index.html#type-left">left</a> * <a href="index.html#type-right">right</a>)</span> list</span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-of_list"><a href="#val-of_list" class="anchor"></a><code><span class="keyword">val</span> of_list : <span><span>(<a href="index.html#type-left">left</a> * <a href="index.html#type-right">right</a>)</span> list</span> <span>&#45;&gt;</span> <a href="index.html#type-t">t</a></code></dt><dt class="spec value" id="val-to_list"><a href="#val-to_list" class="anchor"></a><code><span class="keyword">val</span> to_list : <a href="index.html#type-t">t</a> <span>&#45;&gt;</span> <span><span>(<a href="index.html#type-left">left</a> * <a href="index.html#type-right">right</a>)</span> list</span></code></dt></dl></div></body></html>