module type OrderedType : sig ... endThe input signature of the functorSet.Make.tis the type of the set elements.compareis a total ordering function over the set elements. This is a two-argument functionfsuch thatf e1 e2is zero if the elementse1ande2are equal,f e1 e2is strictly negative ife1is smaller thane2, andf e1 e2is strictly positive ife1is greater thane2. Example: a suitable ordering function is the generic structural comparison functioncompare.
| Types | |
t |
Abstract |
| Functions |
compare
: t -> t -> int |