Created
May 22, 2017 01:16
-
-
Save kunigami/4106654c4724387d7b8051464d43acbf to your computer and use it in GitHub Desktop.
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
module ChildList = Map.Make(Char);; | |
(* | |
Fields: | |
1. Map of chars to child nodes | |
2. Whether this node represent a word | |
*) | |
type trie = Node of trie ChildList.t * bool;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment