Module

Payload.Server.Internal.Trie

Package
purescript-payload
Repository
hoodunit/purescript-payload

#Trie Source

data Trie a

Constructors

Instances

#insert Source

insert :: forall a. a -> List Segment -> Trie a -> Either String (Trie a)

#segmentMatches Source

#empty Source

empty :: forall a. Trie a

#newLeaf Source

newLeaf :: forall a. a -> Trie a

#lookup Source

lookup :: forall a. List String -> Trie a -> List a

#lookup_ Source

lookup_ :: forall a f. Foldable f => f String -> Trie a -> List a

#fromFoldable Source

fromFoldable :: forall l a f. Foldable f => Foldable l => f (Tuple (l Segment) a) -> Either String (Trie a)

#fromFoldable_ Source

fromFoldable_ :: forall l a f. Foldable f => Foldable l => f (Tuple (l Segment) a) -> Trie a

#toList Source

toList :: forall a. Trie a -> List a

#dumpEntries Source

dumpEntries :: forall a. Show a => Trie a -> String