Created
September 16, 2017 15:11
-
-
Save dance2die/7255d7236b1eed8d2dd287607cdaa88d to your computer and use it in GitHub Desktop.
Trie declaration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Data.Map | |
data Trie a = Trie { value :: Maybe a, | |
children :: Map Char (Trie a) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment