stm-hamt-1.2.0.2: STM-specialised Hash Array Mapped Trie

Safe HaskellNone
LanguageHaskell2010

StmHamt.Hamt

Synopsis

Documentation

data Hamt element Source #

STM-specialized Hash Array Mapped Trie.

focus :: (Eq key, Hashable key) => Focus element STM result -> (element -> key) -> key -> Hamt element -> STM result Source #

focusExplicitly :: Focus a STM b -> Int -> (a -> Bool) -> Hamt a -> STM b Source #

insert :: (Eq key, Hashable key) => (element -> key) -> element -> Hamt element -> STM Bool Source #

Returns a flag, specifying, whether the size has been affected.

insertExplicitly :: Int -> (a -> Bool) -> a -> Hamt a -> STM Bool Source #

Returns a flag, specifying, whether the size has been affected.

lookup :: (Eq key, Hashable key) => (element -> key) -> key -> Hamt element -> STM (Maybe element) Source #

Returns a flag, specifying, whether the size has been affected.

lookupExplicitly :: Int -> (a -> Bool) -> Hamt a -> STM (Maybe a) Source #

reset :: Hamt a -> STM () Source #