Pqueue.MakeMaxPoly(3)

πŸ’… Pqueue.MakeMaxPoly(3) β€” OCaml library, bestie ✨

okay so welcome to the manual page for Pqueue.MakeMaxPoly(3) from the OCaml library β€” it’s giving very β€œfunctor with main character energy,” and I’m obsessed. πŸŽ€


🌸 NAME 🌸

Pqueue.MakeMaxPoly is a functor building an implementation of max-priority queues when you give it a totally ordered type for the elements. That’s the NAME section, and it understood the assignment. πŸ’…

πŸŽ€ Module πŸŽ€

Module Pqueue.MakeMaxPoly

✨ Documentation ✨

πŸ¦‹ Module MakeMaxPoly πŸ¦‹

Module MakeMaxPoly
 : (E : OrderedPolyType) -> sig end

Same technical tea as NAME: it’s the functor that builds an implementation of max-priority queues from a totally ordered type for the elements. (Yes bestie, consistency is iconic.) 🫢

🌟 Parameters 🌟

  • "E" β€” Pqueue.OrderedPolyType

Then here’s the exact type/value lineup, in the exact order the page gives it β€” no cap, every signature is right here:

  • type 'a t β€” exact type declaration, periodt.
  • type 'a elt β€” exact type declaration, also periodt.
  • val create : unit -> 'a t β€” exact signature, bestie.
  • val length : 'a t -> int β€” exact signature, no cap.
  • val is_empty : 'a t -> bool β€” exact signature, slay.
  • val add : 'a t -> 'a elt -> unit β€” exact signature, periodt.
  • val add_iter : 'a t -> (('a elt -> unit) -> 'x -> unit) -> 'x -> unit β€” exact signature, highkey iconic.
  • val max_elt : 'a t -> 'a elt option β€” exact signature, fr fr.
  • val get_max_elt : 'a t -> 'a elt β€” exact signature, yes ma’am.
  • val pop_max : 'a t -> 'a elt option β€” exact signature, love that.
  • val remove_max : 'a t -> unit β€” exact signature, understood.
  • val clear : 'a t -> unit β€” exact signature, clean.
  • val copy : 'a t -> 'a t β€” exact signature, duplicate energy.
  • val of_array : 'a elt array -> 'a t β€” exact signature, array moment.
  • val of_list : 'a elt list -> 'a t β€” exact signature, list moment.
  • val of_iter : (('a elt -> unit) -> 'x -> unit) -> 'x -> 'a t β€” exact signature, iterator moment.
  • val iter_unordered : ('a elt -> unit) -> 'a t -> unit β€” exact signature, unordered vibes.
  • val fold_unordered : ('acc -> 'a elt -> 'acc) -> 'acc -> 'a t -> 'acc β€” exact signature, fold finale.

xoxo, bestie πŸ’– β€” this page came from OCamldoc, dated 2026-06-22, and it’s Pqueue.MakeMaxPoly(3). 🫢

πŸ“¦ where this page comes from