compactmap-0.1.4.2.1: A read-only memory-efficient key-value store.

Safe HaskellNone
LanguageHaskell2010

Data.CompactMap

Documentation

data CompactMap k v Source #

Instances

Foldable (CompactMap k) Source # 

Methods

fold :: Monoid m => CompactMap k m -> m #

foldMap :: Monoid m => (a -> m) -> CompactMap k a -> m #

foldr :: (a -> b -> b) -> b -> CompactMap k a -> b #

foldr' :: (a -> b -> b) -> b -> CompactMap k a -> b #

foldl :: (b -> a -> b) -> b -> CompactMap k a -> b #

foldl' :: (b -> a -> b) -> b -> CompactMap k a -> b #

foldr1 :: (a -> a -> a) -> CompactMap k a -> a #

foldl1 :: (a -> a -> a) -> CompactMap k a -> a #

toList :: CompactMap k a -> [a] #

null :: CompactMap k a -> Bool #

length :: CompactMap k a -> Int #

elem :: Eq a => a -> CompactMap k a -> Bool #

maximum :: Ord a => CompactMap k a -> a #

minimum :: Ord a => CompactMap k a -> a #

sum :: Num a => CompactMap k a -> a #

product :: Num a => CompactMap k a -> a #

Show v => Show (CompactMap k v) Source # 

Methods

showsPrec :: Int -> CompactMap k v -> ShowS #

show :: CompactMap k v -> String #

showList :: [CompactMap k v] -> ShowS #

fromList :: Ord k => [v] -> (v -> k) -> CompactMap k v Source #

lookup :: Ord k => k -> CompactMap k v -> Maybe v Source #

getLE :: Ord k => k -> CompactMap k v -> Maybe (Int, v) Source #