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
- 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