val
min_elt : _ t -> cmp:(elt -> elt -> int) -> elt option
Returns a min (resp max) element from the collection using the provided cmp
function, or None if the collection is empty. In case of a tie, the first element
encountered while traversing the collection is returned.
val
max_elt : _ t -> cmp:(elt -> elt -> int) -> elt option