Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class Trie p s t | t -> p where
- lookupWithDefault :: Trie p s t => a -> p s -> t s a -> a
- member :: Trie p s t => p s -> t s a -> Bool
- notMember :: Trie p s t => p s -> t s a -> Bool
- fromFoldable :: (Foldable f, Monoid (t s a), Trie p s t) => f (p s, a) -> t s a
- newtype BSTrie q a = BSTrie {
- unBSTrie :: (q, Trie a)
- makeBSTrie :: Trie a -> BSTrie ByteString a
- getBSTrie :: BSTrie ByteString a -> Trie a
Documentation
class Trie p s t | t -> p where Source
Class representing tries with single-threaded insertion, deletion, and lookup.
forall ts ps a. isJust $ lookupPath ps (insertPath ps a ts)
forall ts ps. isNothing $ lookupPath ps (deletePath ps ts)
lookupWithDefault :: Trie p s t => a -> p s -> t s a -> a Source
Conversion
fromFoldable :: (Foldable f, Monoid (t s a), Trie p s t) => f (p s, a) -> t s a Source
ByteString-Trie
Embeds an empty ByteString passed around for type inference.
makeBSTrie :: Trie a -> BSTrie ByteString a Source
getBSTrie :: BSTrie ByteString a -> Trie a Source