arbor-lru-cache-0.1.1.0

Safe HaskellSafe
LanguageHaskell2010

Arbor.LruCache.Internal.PriorityQueue

Documentation

newtype PriorityQueue p v Source #

Constructors

PriorityQueue [(p, v)] 
Instances
(Eq p, Eq v) => Eq (PriorityQueue p v) Source # 
Instance details

Defined in Arbor.LruCache.Internal.PriorityQueue

Methods

(==) :: PriorityQueue p v -> PriorityQueue p v -> Bool #

(/=) :: PriorityQueue p v -> PriorityQueue p v -> Bool #

(Show p, Show v) => Show (PriorityQueue p v) Source # 
Instance details

Defined in Arbor.LruCache.Internal.PriorityQueue

insert :: Eq v => p -> v -> PriorityQueue p v -> PriorityQueue p v Source #

take :: Ord p => Int -> PriorityQueue p v -> ([v], PriorityQueue p v) Source #

toList :: Ord p => PriorityQueue p v -> [(p, v)] Source #