lass="spec value anchored" id="val-rtrim"><a href="#val-rtrim" class="anchor"></a><code><span><span class="keyword">val</span> rtrim : <span>string <span class="arrow">&#45;&gt;</span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-map2"><a href="#val-map2" class="anchor"></a><code><span><span class="keyword">val</span> map2 : <span><span class="label">f</span>:<span>(<span>char <span class="arrow">&#45;&gt;</span></span> <span>char <span class="arrow"