Advertisement
Guest User

Untitled

a guest
Nov 5th, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.46 KB | None | 0 0
  1. (* my function: *)
  2. let rec sd_print_trace = function
  3. [] -> Printf.printf "\n--end\n %!"; print_newline; ()
  4. | ((s1,s2), _, _)::l -> Printf.printf " (%s,%s) => \n%!" s1 s2; sd_print_trace l;;
  5.  
  6. (*
  7. Error: This expression has type (string * string * 'a * 'b) list
  8.        but an expression was expected of type
  9.          ((string * string) * 'c * 'd) list
  10.        Type string * string * 'a * 'b is not compatible with type
  11.          (string * string) * 'c * 'd
  12. *)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement