Guest User

Untitled

a guest
Feb 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. type a_recd = {x: int; y: int; a:int}
  2. type z_recd = {x: int; y: int; z:int}
  3.  
  4. type a = Atype of a_recd
  5. type z = Ztype of z_recd
  6.  
  7. let v1 = Atype {x=1;y=2;a=3}
  8. let v2 = Ztype ({x=4;y=5;z=7} : z_recd)
  9. ;;
Add Comment
Please, Sign In to add comment