.TH "MoreLabels.Set.OrderedType" 3o 2023-09-20 OCamldoc "OCaml library" .SH NAME MoreLabels.Set.OrderedType \- Input signature of the functor MoreLabels.Set.Make. .SH Module type Module type MoreLabels.Set.OrderedType .SH Documentation .sp Module type .BI "OrderedType" = .B sig end .sp Input signature of the functor .ft B MoreLabels\&.Set\&.Make .ft R \&. .sp .sp .sp .I type t .sp The type of the set elements\&. .sp .I val compare : .B t -> t -> int .sp A total ordering function over the set elements\&. This is a two\-argument function .ft B f .ft R such that .ft B f e1 e2 .ft R is zero if the elements .ft B e1 .ft R and .ft B e2 .ft R are equal, .ft B f e1 e2 .ft R is strictly negative if .ft B e1 .ft R is smaller than .ft B e2 .ft R , and .ft B f e1 e2 .ft R is strictly positive if .ft B e1 .ft R is greater than .ft B e2 .ft R \&. Example: a suitable ordering function is the generic structural comparison function .ft B compare .ft R \&. .sp