Pqueue.MakeMax(3)

πŸ’– NAME πŸ’–

Pqueue.MakeMax β€” the functor that builds an implementation of the max-priority queue structure given a totally ordered type for elements. That's the whole mission, bestie: Functor building an implementation of the max-priority queue structure given a totally ordered type for elements. 🫢

And yes, this is the OCaml library page for Pqueue.MakeMax(3), pulling up with main-character energy ✨


πŸ¦‹ Module πŸ¦‹

Module   Pqueue.MakeMax

✨ Documentation ✨

πŸŽ€ Module MakeMax πŸŽ€

Module MakeMax
 : (E : OrderedType) -> sig end

Functor building an implementation of the max-priority queue structure given a totally ordered type for elements. Literally what it says on the tin, no cap πŸ’…

Parameters:

  • "E" β€” Pqueue.OrderedType

Here's the full roster of types and vals, every line kept exactly, no skips, periodt:

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

this lil page was brought to you by OCamldoc, dated 2026-06-22, and it's all about Pqueue.MakeMax(3) β€” mwah! πŸ§šπŸ’œ

πŸ“¦ where this page comes from