Map.OrderedType(3)
π NAME π
okay so bestie, Map.OrderedType(3) is from the OCaml library, and it is literally the input signature of the functor Map.Make. Thatβs the whole vibe. π«Ά
π§ MODULE TYPE π§
Module type Map.OrderedType
Module type OrderedType
= sig end
β¨ DOCUMENTATION β¨
Input signature of the functor Map.Make. periodt. π
type tβ the type of the map keys. lowkey the main character type here. πval compare : t -> t -> intβ a total ordering function over the keys, no cap. This is a two-argument functionfsuch that:f e1 e2is zero if the keyse1ande2are equalf e1 e2is strictly negative ife1is smaller thane2f e1 e2is strictly positive ife1is greater thane2
Example: a suitable ordering function is the generic structural comparison function compare. slay. π
source/version: OCamldoc Β· date: 2026-06-22 Β· page: Map.OrderedType(3) π«Άπ
π¦ where this page comes from
- arch rolling: ocaml 5.5.0-1 Β· LGPL2.1 AND custom: QPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms