Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Documentation
data Ord k => PriorityQueue k a Source #
Ord a => Queue (PriorityQueue a (a, b, c)) Source # | |
type Elem (PriorityQueue a (a, b, c)) Source # | |
empty :: Ord k => PriorityQueue k a Source #
is_empty :: PriorityQueue k a -> Bool Source #
minKey :: Ord k => PriorityQueue k a -> k Source #
minKeyValue :: Ord k => PriorityQueue k a -> (k, a) Source #
insert :: Ord k => k -> a -> PriorityQueue k a -> PriorityQueue k a Source #
deleteMin :: Ord k => PriorityQueue k a -> ((k, a), PriorityQueue k a) Source #
deleteMinAndInsert :: Ord k => k -> a -> PriorityQueue k a -> PriorityQueue k a Source #