Guest User

Untitled

a guest
Jan 14th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.27 KB | None | 0 0
  1. let save_words flot  trie =
  2.  
  3.   let rec aux f keys = function
  4.     | Leaf t -> f keys t
  5.     | Node (t, l) ->
  6.       f keys t; List.iter (fun (c, s) -> aux f (keys @ [c]) s) l
  7.   in aux (fun keys -> parcours_aux (print_combine flot keys)) [] trie;;
  8.  
  9. save_words flot d;;
Add Comment
Please, Sign In to add comment