uo-stack-0.1.1: A unique, ordered stack implementation

Safe HaskellNone
LanguageHaskell2010

Data.Stack.UniqueOrdered

Synopsis

Documentation

class Foldable stack => UOStack stack where Source

Minimal complete definition

pop

Methods

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

Instances

newtype Asc a Source

The head is the smallest

Constructors

Asc 

Fields

unAsc :: [a]
 

Instances

newtype Des a Source

The head is the largest

Constructors

Des 

Fields

unDes :: [a]
 

Instances