Build_counts in Real World Ocaml in chapter 5. Want to print out List of tuples

This should work:

let temp = build_counts ()
let () = List.iter ~f:(printf "%s %i \n") temp

See Syntax Error on "in" - #5 by yawaramin

1 Like