compactmap-0.1.2: 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 

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