Advertisement
Guest User

Untitled

a guest
Dec 5th, 2013
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
F# 0.26 KB | None | 0 0
  1. type BinTree =
  2.     | Branch of BinTree * BinTree
  3.     | None
  4.  
  5. let Leaf : BinTree = Branch(None, None)
  6.  
  7. (*
  8. t1
  9.  /\
  10. /\ \
  11.  /\
  12. /
  13.  
  14.  t2
  15.  /\
  16. /
  17. *)
  18. let bintree2 = Branch(Branch(Leaf, None), Leaf)
  19. let bintree1 = Branch(Branch(Leaf, bintree2), Branch(None, Leaf))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement