Advertisement
Guest User

Untitled

a guest
Oct 11th, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.15 KB | None | 0 0
  1. type node =
  2. {
  3. mutable next: node option;
  4. value: int;
  5. }
  6. ;;
  7.  
  8.  
  9. let nodeA = {next = None; value = 1};;
  10.  
  11. let nodeB = {next = nodeA; value = 2};;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement