Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Foldable stack => UOStack stack where Source
insert :: (Ord a, Eq a) => a -> stack a -> stack a Source
Sorted insert
into :: (Ord a, Eq a) => stack a -> a -> stack a Source
pop :: (Ord a, Eq a) => stack a -> stack a Source
Pop the head off
inserts :: (Ord a, Eq a) => [a] -> stack a -> stack a Source
Add list of items
intos :: (Ord a, Eq a) => stack a -> [a] -> stack a Source
merge :: (Ord a, Eq a) => stack a -> stack a -> stack a Source
As the name suggests
The head is the smallest