Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Hamt element
- new :: STM (Hamt a)
- newIO :: IO (Hamt a)
- null :: Hamt a -> STM Bool
- focus :: (Eq key, Hashable key) => Focus element STM result -> (element -> key) -> key -> Hamt element -> STM result
- focusExplicitly :: Focus a STM b -> Int -> (a -> Bool) -> Hamt a -> STM b
- insert :: (Eq key, Hashable key) => (element -> key) -> element -> Hamt element -> STM Bool
- insertExplicitly :: Int -> (a -> Bool) -> a -> Hamt a -> STM Bool
- lookup :: (Eq key, Hashable key) => (element -> key) -> key -> Hamt element -> STM (Maybe element)
- lookupExplicitly :: Int -> (a -> Bool) -> Hamt a -> STM (Maybe a)
- reset :: Hamt a -> STM ()
- unfoldM :: Hamt a -> UnfoldM STM a
Documentation
focus :: (Eq key, Hashable key) => Focus element STM result -> (element -> key) -> key -> Hamt element -> STM result 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.