Created
June 22, 2018 22:45
-
-
Save kennetpostigo/3a6f7331d9fff9192c8c70a95bfde578 to your computer and use it in GitHub Desktop.
Reason BST Modeling for Blog Post
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
type binarySearchTree('a) = | |
| Empty | |
| Node(node('a)) | |
and node('a) = { | |
value: 'a, | |
left: binarySearchTree('a), | |
right: binarySearchTree('a), | |
}; | |
let empty = Empty; | |
let bst = Node({value: 1, left: Empty, right: Empty}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment