123456789101112131415161718192021222324252627282930313233343536373839404142434445(** Interfaces for infix comparison operators and comparison functions. *)open!Import(** [Infix] lists the typical infix comparison operators. These functions are provided by
[<M>.O] modules, i.e., modules that expose monomorphic infix comparisons over some
[<M>.t]. *)moduletypeInfix=sigtypetval(>=):t->t->boolval(<=):t->t->boolval(=):t->t->boolval(>):t->t->boolval(<):t->t->boolval(<>):t->t->boolendmoduletypeS=sigincludeInfixvalequal:t->t->bool(** [compare t1 t2] returns 0 if [t1] is equal to [t2], a negative integer if [t1] is
less than [t2], and a positive integer if [t1] is greater than [t2]. *)valcompare:t->t->intvalmin:t->t->tvalmax:t->t->tendmoduletypeS_with_local_opt=sigtypetexternal(<):(t[@local_opt])->(t[@local_opt])->bool="%lessthan"external(<=):(t[@local_opt])->(t[@local_opt])->bool="%lessequal"external(<>):(t[@local_opt])->(t[@local_opt])->bool="%notequal"external(=):(t[@local_opt])->(t[@local_opt])->bool="%equal"external(>):(t[@local_opt])->(t[@local_opt])->bool="%greaterthan"external(>=):(t[@local_opt])->(t[@local_opt])->bool="%greaterequal"externalequal:(t[@local_opt])->(t[@local_opt])->bool="%equal"externalcompare:(t[@local_opt])->(t[@local_opt])->int="%compare"valmin:t->t->tvalmax:t->t->tend