Why does this not print HELLO?
let test x y = (print_string "HELLO"); x + y;;
let test2 = test 2;; (* why does this not print HELLO? *)
Why does this not print HELLO?
let test x y = (print_string "HELLO"); x + y;;
let test2 = test 2;; (* why does this not print HELLO? *)
test2 = fun y -> print_string "HELLO"; 2 + y
so the print hasn’t been run yet