Created
August 21, 2017 06:12
-
-
Save kunigami/7f0390e443ead67f04c7c6b35c0db7db 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
type 'a node = Leaf of 'a | Node of { | |
element: 'a; | |
left: 'a node; (* left sub-tree *) | |
right: 'a node; (* right sub-tree *) | |
};; | |
type 'a tree = {size: int; tree: 'a node};; | |
type 'a t = 'a tree list;; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment