You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>GOption (infer.IStdlib.GOption)</title><link rel="stylesheet" href="../../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 1.5.2"/><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">infer</a> » <a href="../index.html">IStdlib</a> » GOption</nav><h1>Module <code>IStdlib.GOption</code></h1></header><dl><dt class="spec type" id="type-none"><a href="#type-none" class="anchor"></a><code><span class="keyword">type</span> none</code></dt><dt class="spec type" id="type-some"><a href="#type-some" class="anchor"></a><code><span class="keyword">type</span> some</code></dt><dt class="spec type" id="type-t"><a href="#type-t" class="anchor"></a><code><span class="keyword">type</span> <span>(_, _) t</span></code><code> = </code><table class="variant"><tr id="type-t.GNone" class="anchored"><td class="def constructor"><a href="#type-t.GNone" class="anchor"></a><code>| </code><code><span class="constructor">GNone</span> : <span><span>(<a href="index.html#type-none">none</a>, <span class="type-var">_</span>)</span> <a href="index.html#type-t">t</a></span></code></td></tr><tr id="type-t.GSome" class="anchored"><td class="def constructor"><a href="#type-t.GSome" class="anchor"></a><code>| </code><code><span class="constructor">GSome</span> : <span class="type-var">'a</span> <span>-></span> <span><span>(<a href="index.html#type-some">some</a>, <span class="type-var">'a</span>)</span> <a href="index.html#type-t">t</a></span></code></td></tr></table></dt></dl><dl><dt class="spec value" id="val-value"><a href="#val-value" class="anchor"></a><code><span class="keyword">val</span> value : <span><span>(<a href="index.html#type-some">some</a>, <span class="type-var">'a</span>)</span> <a href="index.html#type-t">t</a></span> <span>-></span> <span class="type-var">'a</span></code></dt><dt class="spec value" id="val-value_map"><a href="#val-value_map" class="anchor"></a><code><span class="keyword">val</span> value_map : <span><span>(<span class="type-var">_</span>, <span class="type-var">'a</span>)</span> <a href="index.html#type-t">t</a></span> <span>-></span> <span>default:<span class="type-var">'b</span></span> <span>-></span> <span>f:<span>(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>)</span></span> <span>-></span> <span class="type-var">'b</span></code></dt><dt class="spec value" id="val-value_map_f"><a href="#val-value_map_f" class="anchor"></a><code><span class="keyword">val</span> value_map_f : <span><span>(<span class="type-var">_</span>, <span class="type-var">'a</span>)</span> <a href="index.html#type-t">t</a></span> <span>-></span> <span>default:<span>(unit <span>-></span> <span class="type-var">'b</span>)</span></span> <span>-></span> <span>f:<span>(<span class="type-var">'a</span> <span>-></span> <span class="type-var">'b</span>)</span></span> <span>-></span> <span class="type-var">'b</span></code></dt><dd><p>Like <code>value_map</code> but the default value is evaluated lazily</p></dd></dl></div></body></html>
|