Hello, World! in OCaml
Example for versions
OCaml 3.11
print_endline
is a built-in function defined with the following type:
string -> unit = <func>
This means that it takes 1 string as a parameter, and returns the unit type, ()
.
let () = print_endline "Hello World";;
Comments
]]>blog comments powered by Disqus
]]>