Pqueue.Max(3)
π NAME π
okay so bestie, this page is Pqueue.Max(3), and itβs chillinβ in the OCaml library manual. itβs the output signature of the functor Pqueue.MakeMax β thatβs the whole main character energy here. no cap. π
β¨
π¦ Module type π¦
the page calls this Module type Pqueue.Max, and yes, itβs literally the output signature of the functor Pqueue.MakeMax. slay. π
πΈ Documentation πΈ
so the module type is written like this:
Module type Max
= sig end
and then the page says: output signature of the functor Pqueue.MakeMax . thatβs the note. periodt. π
hereβs every single type and value in the signature, exactly as written β no cutting, no merging, no invented extras, fr fr:
type t
type elt
val create : unit -> t
val length : t -> int
val is_empty : t -> bool
val add : t -> elt -> unit
val add_iter : t -> ((elt -> unit) -> 'x -> unit) -> 'x -> unit
val max_elt : t -> elt option
val get_max_elt : t -> elt
val pop_max : t -> elt option
val remove_max : t -> unit
val clear : t -> unit
val copy : t -> t
val of_array : elt array -> t
val of_list : elt list -> t
val of_iter : ((elt -> unit) -> 'x -> unit) -> 'x -> t
val iter_unordered : (elt -> unit) -> t -> unit
val fold_unordered : ('acc -> elt -> 'acc) -> 'acc -> t -> 'acc
heads up bestie: the manual page gives these signatures and nothing else β no extra behavior notes, defaults, errors, or examples. so weβre not inventing any. π
thatβs the whole signature, and honestly itβs giving βshort but iconic.β iykyk. ππ«Ά
made with π by OCamldoc β page date 2026-06-22. mwah. ππ
π¦ 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