class="type-var">'a</span> <span>&#45;&gt;</span> int)</span></span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> <a href="index.html#type-t">t</a></span> <span>&#45;&gt;</span> <span><span class="type-var">'a</span> option</span></code></dt><dd><p><code>max ~compare t</code> is <code>Some x</code> when <code>x</code> is the maximum value in <code>t</code>, as determined by <code>compare</code>, or <code>None</code> if <code>is_empty t</code>.</p></dd></dl><dl><dt class="spec value" id="val