vault backup: 2023-09-12 15:31:50
This commit is contained in:
parent
615167f073
commit
c380a6ff4d
@ -40,4 +40,11 @@ toto
|
||||
## 0.2. Sequence of prints
|
||||
```Ocaml
|
||||
# print_string "The answer is: "; print_int 42;;
|
||||
The answer is: 42 -: unit = ()
|
||||
The answer is: 42 -: unit = ()
|
||||
|
||||
# 3*2*7; print_string "The answer is : ";;
|
||||
The answer is -: unit = ()
|
||||
Warning 10 [non-unit-statement]: this expression should have type unit.
|
||||
|
||||
# print_string "The answer is: "; 3*2*7;;
|
||||
The answer is: -:int = 42
|
Loading…
x
Reference in New Issue
Block a user