Guest User

Untitled

a guest
Sep 26th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. type 'a tree =
  2. | Leaf of 'a
  3. | Branch of ('a * 'a) tree
  4.  
  5. let rec treeMap f tree =
  6. match tree with
  7. | Leaf (x,y) -> Leaf (f x, f y)
  8. |
Advertisement
Add Comment
Please, Sign In to add comment