Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.20 KB | None | 0 0
  1. (*Noeud = Node, vide() = empty()*)
  2. let rec make_branch cs = match cs with
  3.   | [] -> vide ()
  4.   | [c] -> Noeud (ref true, ref [c, vide ()])
  5.   | c :: cs' -> Noeud (ref false, ref [c, make_branch cs'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement