pre><span id="VALbsearch"><span class="keyword">val</span> bsearch</span> : <code class="type">?cmp:('a -> 'a -> int) -><br>       'a -><br>       'a <a href="Barray_slice.html#TYPEt">t</a> -><br>       [ `All_bigger | `All_lower | `At of int | `Empty | `Just_after of int ]</code></pre><div class="info ">
<code class="code">bsearch ?cmp x arr</code> finds the index of the object <code class="code">x</code> in the array <code class="code">arr</code>,
    provided <code class="code">arr</code> is <b>sorted</b