package interval-map

  1. Overview
  2. Docs

Module Make.BoundSource

Sourcetype t =
  1. | Included of Bound_compare.t
  2. | Excluded of Bound_compare.t
  3. | Unbounded
Sourceval 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 first bound is strictly less than the second, zero if the bounds are equal, and an integer greater than zero if the first bound is strictly greater than the second.

Sourceval compare_upper : t -> t -> int

compare_upper bound_a bound_b compares two bounds as upper bounds

Sourceval min_lower : t -> t -> t

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

Sourceval max_upper : t -> t -> t

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