Safe Haskell | None |
---|---|
Language | Haskell2010 |
STM mutable set
Synopsis
- type TSet a = Set a
- type Element a = (Eq a, Hashable a)
- null :: TSet a -> STM Bool
- size :: TSet a -> STM Int
- member :: Element e => e -> TSet e -> STM Bool
- notMember :: Element e => e -> TSet e -> STM Bool
- empty :: STM (TSet e)
- singleton :: Element e => e -> STM (TSet e)
- insert :: Element e => e -> TSet e -> STM ()
- delete :: Element e => e -> TSet e -> STM ()
- toList :: TSet e -> STM [e]
- fromList :: Element e => [e] -> STM (TSet e)
- elems :: TSet e -> STM [e]
- stream :: TSet e -> ListT STM e
- unions :: Element e => [TSet e] -> STM (TSet e)
- map :: Element b => (a -> b) -> TSet a -> STM (TSet b)