Safe Haskell | Trustworthy |
---|---|
Language | Haskell98 |
- data Dyn
- value :: Typeable * b => Dyn -> Maybe b
- makeDyn :: (Typeable * a, Eq a) => a -> Dyn
- data WeakDict t u
- emptyWeak :: IO (WeakDict t u)
- sizeWeak :: WeakDict t u -> IO Int
- assocsWeak :: WeakDict t u -> IO [(t, u)]
- filterWeak :: Eq t => (t -> u -> Bool) -> WeakDict t u -> IO (WeakDict t u)
- insertWeak :: Eq t => t -> u -> WeakDict t u -> IO (WeakDict t u)
- fastDeleteWeak :: Eq a => a -> WeakDict a u -> IO ()
- deleteWeak :: Eq t => t -> WeakDict t u -> IO (WeakDict t u)
- lookupWeak :: Eq a => a -> WeakDict a a1 -> IO (Maybe a1)
- fastDeleteWeakDyn :: (Typeable * a, Eq a) => a -> WeakDict Dynamic u -> IO ()
Documentation
Dynamic values equipped with the ability to compare to other values.
assocsWeak :: WeakDict t u -> IO [(t, u)] Source #
filterWeak :: Eq t => (t -> u -> Bool) -> WeakDict t u -> IO (WeakDict t u) Source #
Filtering contents by a predicate.
insertWeak :: Eq t => t -> u -> WeakDict t u -> IO (WeakDict t u) Source #
Insert a key-value pair into the dictionary, in such a way as that the pair does not keep the key (or value) alive.
fastDeleteWeak :: Eq a => a -> WeakDict a u -> IO () Source #
Deletes a key-value pair, updating the original structure.