Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Documentation
newtype PriorityQueue p v Source #
PriorityQueue [(p, v)] |
Instances
(Eq p, Eq v) => Eq (PriorityQueue p v) Source # | |
Defined in Arbor.LruCache.Internal.PriorityQueue (==) :: PriorityQueue p v -> PriorityQueue p v -> Bool # (/=) :: PriorityQueue p v -> PriorityQueue p v -> Bool # | |
(Show p, Show v) => Show (PriorityQueue p v) Source # | |
Defined in Arbor.LruCache.Internal.PriorityQueue showsPrec :: Int -> PriorityQueue p v -> ShowS # show :: PriorityQueue p v -> String # showList :: [PriorityQueue p v] -> ShowS # |
insert :: Eq v => p -> v -> PriorityQueue p v -> PriorityQueue p v Source #
take :: Ord p => Int -> PriorityQueue p v -> ([v], PriorityQueue p v) Source #
empty :: PriorityQueue p v Source #
toList :: Ord p => PriorityQueue p v -> [(p, v)] Source #