Is it possible to put print statements for debugging/testing in blocks of code?
For example, in Java you can use System.out.println("")
in the middle of methods to check variables or other things.
But in OCaml, would a command like print_string
work? Wouldn't it return a value of type unit, thus causing an error, instead of allowing you to print it?