Pqueue.OrderedType(3)
okay so bestie, you're on the Pqueue.OrderedType(3) page from the OCaml library, and it's giving β¨input-signature energyβ¨ for the functors Pqueue.MakeMin and Pqueue.MakeMax. no cap, this is the blueprint those functors are looking for π
π NAME π
Pqueue.OrderedType β Input signature of the functors Pqueue.MakeMin and Pqueue.MakeMax.
π§ Module type π§
Module type Pqueue.OrderedType β yes, that's literally the module type we're documenting here, bestie.
π Documentation π
okay so the module type is OrderedType, and it's a sig end situation with these goodies inside:
Module type OrderedType
= sig end
It's the Input signature of the functors Pqueue.MakeMin and Pqueue.MakeMax. those functors are the main characters, and this is the contract they require π«Ά
type tβ The type of elements. that's the element type, periodt.val compare : t -> t -> intβ A total ordering function to compare elements.
So compare is a two-argument function f such that:
f e1 e2is zero if the elementse1ande2are equal,f e1 e2is strictly negative ife1is smaller thane2, andf e1 e2is strictly positive ife1is greater thane2.
The generic structural comparison function compare is a suitable ordering function for element types such as int or string. slay π₯
mwah π this icon of a page was brought to you by OCamldoc, dated 2026-06-22, and it's the Pqueue.OrderedType(3) page. stay iconic ππ
π¦ 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