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.

2 lines
4.7 KiB

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>InferStdlib__IContainer (InferStdlib.InferStdlib__IContainer)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><meta name="generator" content="doc-ock-html v1.0.0-1-g1fc9bf0"/></head><body><nav id="top"><a href="../index.html">Up</a> &mdash; <span class="package">package <a href="../index.html">InferStdlib</a></span></nav><header><h1><span class="keyword">Module</span> <span class="module-path">InferStdlib__IContainer</span></h1></header><div class="spec type" id="type-singleton_or_more"><a href="#type-singleton_or_more" class="anchor"></a><div class="def type"><code><span class="keyword">type </span>'a singleton_or_more</code><code></code><code><span class="keyword"> = </span></code><table class="variant"><tr id="type-singleton_or_more.Empty" class="anchored"><td class="def constructor"><a href="#type-singleton_or_more.Empty" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Empty</span></code></td></tr><tr id="type-singleton_or_more.Singleton" class="anchored"><td class="def constructor"><a href="#type-singleton_or_more.Singleton" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">Singleton</span><span class="keyword"> of </span><span class="type-var">'a</span></code></td></tr><tr id="type-singleton_or_more.More" class="anchored"><td class="def constructor"><a href="#type-singleton_or_more.More" class="anchor"></a><code><span class="keyword">| </span></code><code><span class="constructor">More</span></code></td></tr></table><code></code></div><div class="doc"></div></div><div class="spec val" id="val-singleton_or_more"><a href="#val-singleton_or_more" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>singleton_or_more : fold:(<span class="type-var">'t</span>, <span class="type-var">'a</span>, <span class="type-var">'a</span> <a href="index.html#type-singleton_or_more">singleton_or_more</a>) <a href="../InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Container.fold <span class="keyword">&#8209;&gt;</span> <span class="type-var">'t</span> <span class="keyword">&#8209;&gt;</span> <span class="type-var">'a</span> <a href="index.html#type-singleton_or_more">singleton_or_more</a></code></div><div class="doc"></div></div><div class="spec val" id="val-mem_nth"><a href="#val-mem_nth" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>mem_nth : fold:(<span class="type-var">'t</span>, <span class="type-var">_</span>, int) <a href="../InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Container.fold <span class="keyword">&#8209;&gt;</span> <span class="type-var">'t</span> <span class="keyword">&#8209;&gt;</span> int <span class="keyword">&#8209;&gt;</span> bool</code></div><div class="doc"></div></div><div class="spec val" id="val-forto"><a href="#val-forto" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>forto : (int, int, <span class="type-var">'accum</span>) <a href="../InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Container.fold</code></div><div class="doc"></div></div><div class="spec val" id="val-rev_map_to_list"><a href="#val-rev_map_to_list" class="anchor"></a><div class="def val"><code><span class="keyword">val </span>rev_map_to_list : fold:(<span class="type-var">'t</span>, <span class="type-var">'a</span>, <span class="type-var">'b</span> list) <a href="../InferStdlib/index.html#module-IStd">InferStdlib.IStd</a>.Container.fold <span class="keyword">&#8209;&gt;</span> <span class="type-var">'t</span> <span class="keyword">&#8209;&gt;</span> f:(<span class="type-var">'a</span> <span class="keyword">&#8209;&gt;</span> <span class="type-var">'b</span>) <span class="keyword">&#8209;&gt;</span> <span class="type-var">'b</span> list</code></div><div class="doc"></div></div><div class="spec val" id="val-rev_filter_map_to_list"><a href="#val-rev_filter_map_to_list" c