module type Comparable =sig..end
Interface for comparable and hashable types.
Modules implementing this interface can be an argument of Map.Make,
Set.Make or Hashtbl.Make.
type t
val equal : t -> t -> boolEquality over t.
val compare : t -> t -> intComparison over t.
compare x y returns 0 iff equal x y = 0. If x and y are not
equal, it returns a negative integer iff x is lesser than y and a
positive integer otherwise.
val hash : t -> intA hash function over t.