Base.Maybe_boundSourceUsed for specifying a bound (either upper or lower) as inclusive, exclusive, or unbounded.
val interval_contains_exn :
lower:'a t ->
upper:'a t ->
'a ->
compare:('a -> 'a -> int) ->
boolinterval_contains_exn ~lower ~upper x ~compare raises if lower and upper are crossed.
bounds_crossed ~lower ~upper ~compare returns true if lower > upper.
It ignores whether the bounds are Incl or Excl.
val compare_to_interval_exn :
lower:'a t ->
upper:'a t ->
'a ->
compare:('a -> 'a -> int) ->
interval_comparisoncompare_to_interval_exn ~lower ~upper x ~compare raises if lower and upper are crossed.