Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type BinTree =
- | Branch of BinTree * BinTree
- | None
- let Leaf : BinTree = Branch(None, None)
- (*
- t1
- /\
- /\ \
- /\
- /
- t2
- /\
- /
- *)
- let bintree2 = Branch(Branch(Leaf, None), Leaf)
- let bintree1 = Branch(Branch(Leaf, bintree2), Branch(None, Leaf))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement