ass="type">filename:string -&gt; f:(out_channel -&gt; 'a) -&gt; 'a</code></pre><div class="info ">
<div class="info-desc">
<p>Open the given <code class="code">filename</code> for writing (in binary mode), pass the
    <code class="code">out_channel</code> to the given function, then close the channel. If the function
    raises an exception then <code class="code">filename</code> will be removed.</p>
</div>
</div>

<pre><span id="VALlog2"><span class="keyword">val</span> log2</span> : <code class="type">in