Safe Haskell | None |
---|---|

Language | Haskell2010 |

STm hashmap

## Synopsis

- type TMap a b = Map a b
- type Key a = (Eq a, Hashable a)
- null :: TMap a b -> STM Bool
- size :: TMap a b -> STM Int
- lookup :: Key k => k -> TMap k a -> STM (Maybe a)
- member :: Key k => k -> TMap k b -> STM Bool
- notMember :: Key k => k -> TMap k b -> STM Bool
- empty :: STM (TMap a b)
- singleton :: Key k => k -> v -> STM (TMap k v)
- insert :: Key k => k -> v -> TMap k v -> STM ()
- fromList :: Key k => [(k, v)] -> STM (TMap k v)
- delete :: Key k => k -> TMap k v -> STM ()
- elems :: TMap a b -> STM [b]
- keys :: TMap a b -> STM [a]
- (!) :: Key k => TMap k v -> k -> STM v