moonpool/dev/ocaml/Stdlib/StdLabels/index.html
2023-08-28 17:11:38 +00:00

6 lines
No EOL
2.4 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>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> &#x00BB; <a href="../index.html">Stdlib</a> &#x00BB; 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 -&gt; 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>