non-empty-0.2: List-like structures with static restrictions on the number of elements

Safe HaskellNone

Data.NonEmpty.Map

Documentation

data T k a Source

Instances

(Eq k, Eq a) => Eq (T k a) 
(Ord k, Ord a) => Ord (T k a) 
(Show k, Show a) => Show (T k a) 

insert :: Ord k => k -> a -> Map k a -> T k aSource

singleton :: k -> a -> T k aSource

member :: Ord k => k -> T k a -> BoolSource

lookup :: Ord k => k -> T k a -> Maybe aSource

minViewWithKey :: T k a -> ((k, a), Map k a)Source

maxViewWithKey :: Ord k => T k a -> ((k, a), Map k a)Source

fromList :: Ord k => T [] (k, a) -> T k aSource

toAscList :: T k a -> T [] (k, a)Source

flatten :: Ord k => T k a -> Map k aSource

union :: Ord k => T k a -> T k a -> T k aSource

unionLeft :: Ord k => Map k a -> T k a -> T k aSource

unionRight :: Ord k => T k a -> Map k a -> T k aSource