mirror of
https://github.com/c-cube/moonpool.git
synced 2025-12-17 08:06:43 -05:00
6 lines
No EOL
2.4 KiB
HTML
6 lines
No EOL
2.4 KiB
HTML
<!DOCTYPE html>
|
||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>StdLabels (ocaml.Stdlib.StdLabels)</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">Stdlib</a> » StdLabels</nav><header class="odoc-preamble"><h1>Module <code><span>Stdlib.StdLabels</span></code></h1><p>Standard labeled libraries.</p><p>This meta-module provides versions of the <a href="../ArrayLabels/index.html"><code>Array</code></a>, <a href="../BytesLabels/index.html"><code>Bytes</code></a>, <a href="../ListLabels/index.html"><code>List</code></a> and <a href="../StringLabels/index.html"><code>String</code></a> modules where function arguments are systematically labeled. It is intended to be opened at the top of source files, as shown below.</p><pre class="language-ocaml"><code>open StdLabels
|
||
|
||
let to_upper = String.map ~f:Char.uppercase_ascii
|
||
let seq len = List.init ~f:(function i -> i) ~len
|
||
let everything = Array.create_matrix ~dimx:42 ~dimy:42 42</code></pre></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Array"><a href="#module-Array" class="anchor"></a><code><span><span class="keyword">module</span> Array</span><span> = <a href="../ArrayLabels/index.html">ArrayLabels</a></span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-Bytes"><a href="#module-Bytes" class="anchor"></a><code><span><span class="keyword">module</span> Bytes</span><span> = <a href="../BytesLabels/index.html">BytesLabels</a></span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-List"><a href="#module-List" class="anchor"></a><code><span><span class="keyword">module</span> List</span><span> = <a href="../ListLabels/index.html">ListLabels</a></span></code></div></div><div class="odoc-spec"><div class="spec module anchored" id="module-String"><a href="#module-String" class="anchor"></a><code><span><span class="keyword">module</span> String</span><span> = <a href="../StringLabels/index.html">StringLabels</a></span></code></div></div></div></body></html> |