package interval-map

  1. Overview
  2. Docs
type t =
  1. | Included of Bound_compare.t
  2. | Excluded of Bound_compare.t
  3. | Unbounded
val compare_lower : t -> t -> int

compare_lower bound_a bound_b compares two bounds as lower bounds. Returns an integer less than zero if the bound_a is strictly less than bound_b, zero if the bounds are equal, and an integer greater than zero if bound_a is strictly greater than bound_b.

val compare_upper : t -> t -> int

compare_upper bound_a bound_b compares two bounds as upper bounds

val min_lower : t -> t -> t

min_lower bound_a bound_b chooses the minimum lower bound between bound_a and bound_b

val max_upper : t -> t -> t

max_upper bound_a bound_b chooses the maximum upper bound between bound_a and bound_b