Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data BTree s k v
- newtype Context s = Context (Context s)
- lookup :: forall s k v. (Ord k, Prim k, Prim v) => BTree s k v -> k -> ST s (Maybe v)
- insert :: (Ord k, Prim k, Prim v) => BTree s k v -> k -> v -> ST s ()
- modifyWithM :: forall s k v. (Ord k, Prim k, Prim v) => BTree s k v -> k -> (Maybe v -> ST s v) -> ST s v
- new :: (Prim k, Prim v) => Context s -> ST s (BTree s k v)
- foldrWithKey :: forall s k v b. (Ord k, Prim k, Prim v) => (k -> v -> b -> ST s b) -> b -> BTree s k v -> ST s b
- toAscList :: forall s k v. (Ord k, Prim k, Prim v) => BTree s k v -> ST s [(k, v)]
- fromList :: (Ord k, Prim k, Prim v) => Context s -> [(k, v)] -> ST s (BTree s k v)
- debugMap :: forall s k v. (Prim k, Prim v, Show k, Show v) => BTree s k v -> ST s String
Documentation
modifyWithM :: forall s k v. (Ord k, Prim k, Prim v) => BTree s k v -> k -> (Maybe v -> ST s v) -> ST s v Source #
foldrWithKey :: forall s k v b. (Ord k, Prim k, Prim v) => (k -> v -> b -> ST s b) -> b -> BTree s k v -> ST s b Source #