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

Safe HaskellNone
LanguageHaskell2010

Data.CompactMap.Generic

Documentation

data CompactMap vec k v Source #

Instances

(Vector vec v, Show v) => Show (CompactMap vec k v) Source # 

Methods

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

show :: CompactMap vec k v -> String #

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

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

toVector :: Vector vec v => CompactMap vec k v -> vec v Source #

lookup :: (Vector vec v, Ord k) => k -> CompactMap vec k v -> Maybe v Source #

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

getIndex :: Vector vec v => Int -> CompactMap vec k v -> Maybe v Source #