r has size at least the int by resizing if needed The value provided will be use to set the newly created values.</p></dd></dl><dl><dt class="spec value" id="val-keep"><a href="#val-keep" class="anchor"></a><code><span class="keyword">val</span> keep : <span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></span> <span>&#45;&gt;</span> int <span>&#45;&gt;</span> unit</code></dt><dd><p>Keep only the specified number of element. If the vector was smaller, do nothing.</p></dd></dl><dl><dt cla