Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created September 16, 2017 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dance2die/7255d7236b1eed8d2dd287607cdaa88d to your computer and use it in GitHub Desktop.
Save dance2die/7255d7236b1eed8d2dd287607cdaa88d to your computer and use it in GitHub Desktop.
Trie declaration
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