This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!DOCTYPE html>
<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>GOption (infer.IStdlib.GOption)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.0"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">IStdlib</a>» GOption</nav><h1>Module <code>IStdlib.GOption</code></h1></header><dl><dtclass="spec type"id="type-none"><ahref="#type-none"class="anchor"></a><code><spanclass="keyword">type</span> none</code></dt><dtclass="spec type"id="type-some"><ahref="#type-some"class="anchor"></a><code><spanclass="keyword">type</span> some</code></dt><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span><span>(_, _) t</span></code><code> = </code><tableclass="variant"><trid="type-t.GNone"class="anchored"><tdclass="def constructor"><ahref="#type-t.GNone"class="anchor"></a><code>| </code><code><spanclass="constructor">GNone</span> : <span><span>(<ahref="index.html#type-none">none</a>,<spanclass="type-var">_</span>)</span><ahref="index.html#type-t">t</a></span></code></td></tr><trid="type-t.GSome"class="anchored"><tdclass="def constructor"><ahref="#type-t.GSome"class="anchor"></a><code>| </code><code><spanclass="constructor">GSome</span> : <spanclass="type-var">'a</span><span>-></span><span><span>(<ahref="index.html#type-some">some</a>,<spanclass="type-var">'a</span>)</span><ahref="index.html#type-t">t</a></span></code></td></tr></table></dt></dl><dl><dtclass="spec value"id="val-value"><ahref="#val-value"class="anchor"></a><code><spanclass="keyword">val</span> value : <span><span>(<ahref="index.html#type-some">some</a>,<spanclass="type-var">'a</span>)</span><ahref="index.html#type-t">t</a></span><span>-></span><spanclass="type-var">'a</span></code></dt><dtclass="spec value"id="val-value_map"><ahref="#val-value_map"class="anchor"></a><code><spanclass="keyword">val</span> value_map : <span><span>(<spanclass="type-var">_</span>,<spanclass="type-var">'a</span>)</span><ahref="index.html#type-t">t</a></span><span>-></span><span>default:<spanclass="type-var">'b</span></span><span>-></span><span>f:<span>(<spanclass="type-var">'a</span><span>-></span><spanclass="type-var">'b</span>)</span></span><span>-></span><spanclass="type-var">'b</span></code></dt><dtclass="spec value"id="val-value_map_f"><ahref="#val-value_map_f"class="anchor"></a><code><spanclass="keyword">val</span> value_map_f : <span><span>(<spanclass="type-var">_</span>,<spanclass="type-var">'a</span>)</span><ahref="index.html#type-t">t</a></span><span>-></span><span>default:<span>(unit <span>-></span><spanclass="type-var">'b</span>)</span></span><span>-></span><span>f:<span>(<spanclass="type-var">'a</span><span>-></span><spanclass="type-var">'b</span>)</span></span><span>-></span><spanclass="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>