Created
January 29, 2014 09:56
-
-
Save kunishi/8684866 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
datatype 'a btree = Empty | Node of 'a * 'a btree * 'a btree; | |
fun find_in_btree(x, Empty) = false | |
| find_in_btree(x, Node(a, l, r)) = | |
x = a orelse find_in_btree(x, l) orelse find_in_btree(x, r); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment