MoreLabels.Map.OrderedType(3)

✨ NAME ✨

okay so welcome to MoreLabels.Map.OrderedType(3), straight out of the OCaml library manual, bestie. 🫢 This one is MoreLabels.Map.OrderedType β€” the input signature of the functor MoreLabels.Map.Make. that's the whole assignment. πŸ’…

πŸŽ€ Module type πŸŽ€

Module type MoreLabels.Map.OrderedType

πŸ’– Documentation πŸ’–

Module type OrderedType
 = sig end

It's giving β€œinput signature of the functor MoreLabels.Map.Make.” literally that. no extra lore. 🌸

  • type t β€” the type of the map keys. yes queen, this is the key type. πŸ‘‘
  • val compare : t -> t -> int β€” a total ordering function over the keys. it's a two-argument function f such that:
    • f e1 e2 is zero if the keys e1 and e2 are equal
    • f e1 e2 is strictly negative if e1 is smaller than e2
    • f e1 e2 is strictly positive if e1 is greater than e2

Example: a suitable ordering function is the generic structural comparison function compare. periodt, that's the example, and it ate. πŸ”₯


mwah πŸ’‹ this iconic little page was served up by OCamldoc on 2026-06-22. don't forget to stan your ordering functions. πŸ¦‹

πŸ“¦ where this page comes from