pred-trie-0.0.12: Predicative tries

Safe HaskellSafe
LanguageHaskell2010

Data.Trie.Pred.Unified.Tail

Synopsis

Documentation

data UPTrie t x where Source

Constructors

UMore :: t -> Maybe x -> [UPTrie t x] -> UPTrie t x 
UPred :: t -> (t -> Maybe r) -> Maybe (r -> x) -> [UPTrie t (r -> x)] -> UPTrie t x 

assignLit :: Eq t => NonEmpty t -> Maybe x -> UPTrie t x -> UPTrie t x Source

lookup :: Eq t => NonEmpty t -> UPTrie t x -> Maybe x Source

lookupNearestParent :: Eq t => NonEmpty t -> UPTrie t x -> Maybe x Source

merge :: Eq t => UPTrie t x -> UPTrie t x -> UPTrie t x Source

Overwrites when similar, leaves untouched when not

areDisjoint :: Eq t => UPTrie t x -> UPTrie t x -> Bool Source

litSingletonTail :: NonEmpty t -> x -> UPTrie t x Source

litExtrudeTail :: [t] -> UPTrie t x -> UPTrie t x Source

sort :: Eq t => [UPTrie t x] -> [UPTrie t x] Source