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