pseudo-trie-0.0.3: A tagged rose-tree with short circuited unique leaves

Safe HaskellNone
LanguageHaskell2010

Data.Trie.Rooted

Synopsis

Documentation

data Rooted t a Source

Constructors

Rooted (Maybe a) [PseudoTrie t a] 

Instances

Functor (Rooted t) 
Eq t => Applicative (Rooted t)

Intersection instance

(Eq t, Eq a) => Eq (Rooted t a) 
(Show t, Show a) => Show (Rooted t a) 
(Eq t, Monoid a) => Monoid (Rooted t a)

Union instance

(Arbitrary t, Arbitrary a) => Arbitrary (Rooted t a) 

set :: Eq t => [t] -> a -> Rooted t a -> Rooted t a Source

Strictly constructive form of Data.Trie.Pseudo.assign

unionWith :: Eq t => (a -> a -> a) -> Rooted t a -> Rooted t a -> Rooted t a Source

Disjoint cases just merge children to common root