vault backup: 2023-09-12 15:15:04
This commit is contained in:
15
Algo/Chapter 0 - A bit of imperative/0.1 - Print.md
Normal file
15
Algo/Chapter 0 - A bit of imperative/0.1 - Print.md
Normal file
@ -0,0 +1,15 @@
|
||||
If we want to print something in CAML, we have to use this structure
|
||||
|
||||
```Ocaml
|
||||
# print_string "Hello World!";;
|
||||
Hello! - : unit=()
|
||||
|
||||
# print_int ;;
|
||||
-: int -> unit = <fun>
|
||||
|
||||
(*expression*)
|
||||
# print_[type] [things to print];;
|
||||
[things to print] -: unit=()
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user