include sig ... end
val t_of_sexp : (Base__.Sexplib.Sexp.t ‑> 'a) ‑> Base__.Sexplib.Sexp.t ‑> 'a t
val sexp_of_t : ('a ‑> Base__.Sexplib.Sexp.t) ‑> 'a t ‑> Base__.Sexplib.Sexp.t
val all : 'a list ‑> 'a t list
val is_lower_bound : 'a t ‑> of_:'a ‑> compare:('a ‑> 'a ‑> int) ‑> bool
val is_upper_bound : 'a t ‑> of_:'a ‑> compare:('a ‑> 'a ‑> int) ‑> bool
bounds_crossed ~lower ~upper ~compare
returns true if lower > upper
.
It ignores whether the bounds are Incl
or Excl
.
include sig ... end
val hash_fold_interval_comparison : Base__.Ppx_hash_lib.Std.Hash.state ‑> interval_comparison ‑> Base__.Ppx_hash_lib.Std.Hash.state
val hash_interval_comparison : interval_comparison ‑> Base__.Ppx_hash_lib.Std.Hash.hash_value
val compare_interval_comparison : interval_comparison ‑> interval_comparison ‑> int
val interval_comparison_of_sexp : Base__.Sexplib.Sexp.t ‑> interval_comparison
val sexp_of_interval_comparison : interval_comparison ‑> Base__.Sexplib.Sexp.t
val compare_to_interval_exn : lower:'a t ‑> upper:'a t ‑> 'a ‑> compare:('a ‑> 'a ‑> int) ‑> interval_comparison
compare_to_interval_exn ~lower ~upper x ~compare
raises if lower
and upper
are
crossed.