exception Empty
Raised when a queue is empty
This module provides a basic implementation of priority queues
exception Empty
type priority
type 'a t
'a
val empty : 'a t
val is_empty : 'a t -> bool
true
iff the queue is empty
val singleton : priority -> 'a -> 'a t
val merge : 'a t -> 'a t -> 'a t
val insert : 'a t -> priority -> 'a -> 'a t
val top : 'a t -> 'a
Empty
if the queue is empty
val pop : 'a t -> 'a t
Empty
if the queue is empty
val extract : 'a t -> ('a * 'a t)
Empty
if the queue is empty