Advertisement
Guest User

Untitled

a guest
Mar 26th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. data Tree = Leaf Int
  2. | Fork Tree Int Tree
  3. deriving Show
  4.  
  5.  
  6. t0 = Leaf 0
  7. t1 = Fork (Fork (Leaf 1) 2 (Leaf 3)) 4 (Fork (Leaf 5) 6 (Leaf 7))
  8. t2 = Fork (Fork (Fork (Leaf 1) 2 (Leaf 3)) 4 (Leaf 5)) 6 (Leaf 7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement