halg-heaps-0.1.0.0: Various heap structures
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Heap.Spray

Documentation

data Spray a Source #

Instances

Instances details
Heap Spray Source # 
Instance details

Defined in Data.Heap.Spray

Methods

empty :: Ord a => Spray a Source #

null :: Ord a => Spray a -> Bool Source #

insert :: Ord a => a -> Spray a -> Spray a Source #

merge :: Ord a => Spray a -> Spray a -> Spray a Source #

findMin :: Ord a => Spray a -> Maybe a Source #

deleteMin :: Ord a => Spray a -> Maybe (Spray a) Source #

singleton :: Ord a => a -> Spray a Source #

viewMin :: Ord a => Spray a -> Maybe (a, Spray a) Source #

fromList :: Ord a => [a] -> Spray a Source #

toList :: Ord a => Spray a -> [a] Source #

span :: Ord a => (a -> Bool) -> Spray a -> (Spray a, Spray a) Source #

Eq a => Eq (Spray a) Source # 
Instance details

Defined in Data.Heap.Spray

Methods

(==) :: Spray a -> Spray a -> Bool #

(/=) :: Spray a -> Spray a -> Bool #

Ord a => Ord (Spray a) Source # 
Instance details

Defined in Data.Heap.Spray

Methods

compare :: Spray a -> Spray a -> Ordering #

(<) :: Spray a -> Spray a -> Bool #

(<=) :: Spray a -> Spray a -> Bool #

(>) :: Spray a -> Spray a -> Bool #

(>=) :: Spray a -> Spray a -> Bool #

max :: Spray a -> Spray a -> Spray a #

min :: Spray a -> Spray a -> Spray a #

Read a => Read (Spray a) Source # 
Instance details

Defined in Data.Heap.Spray

Show a => Show (Spray a) Source # 
Instance details

Defined in Data.Heap.Spray

Methods

showsPrec :: Int -> Spray a -> ShowS #

show :: Spray a -> String #

showList :: [Spray a] -> ShowS #

spraySort :: Ord a => [a] -> [a] Source #