arithmetic-1.3: Natural number arithmetic

LicenseMIT
MaintainerJoe Leslie-Hurd <joe@gilith.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Arithmetic.Utility.Heap

Description

 

Documentation

data Heap a Source #

Instances
Show a => Show (Heap a) Source # 
Instance details

Defined in Arithmetic.Utility.Heap

Methods

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

show :: Heap a -> String #

showList :: [Heap a] -> ShowS #

size :: Heap a -> Int Source #

empty :: (a -> a -> Bool) -> Heap a Source #

add :: a -> Heap a -> Heap a Source #

remove :: Heap a -> Maybe (a, Heap a) Source #

toList :: Heap a -> [a] Source #