1MoreLabels.Set.OrderedType(3) OCaml library MoreLabels.Set.OrderedType(3)
2
3
4
6 MoreLabels.Set.OrderedType - Input signature of the functor MoreLa‐
7 bels.Set.Make.
8
10 Module type MoreLabels.Set.OrderedType
11
13 Module type OrderedType
14 = sig end
15
16
17 Input signature of the functor MoreLabels.Set.Make .
18
19
20
21
22
23 type t
24
25
26 The type of the set elements.
27
28
29
30 val compare : t -> t -> int
31
32 A total ordering function over the set elements. This is a two-argu‐
33 ment function f such that f e1 e2 is zero if the elements e1 and e2 are
34 equal, f e1 e2 is strictly negative if e1 is smaller than e2 , and f e1
35 e2 is strictly positive if e1 is greater than e2 . Example: a suitable
36 ordering function is the generic structural comparison function compare
37 .
38
39
40
41
42
43OCamldoc 2022-02-04 MoreLabels.Set.OrderedType(3)