vault backup: 2023-09-05 15:07:54

This commit is contained in:
2023-09-05 15:07:54 +02:00
parent 4c95cef899
commit 6dfa2cb3bc
4 changed files with 24 additions and 25 deletions

View File

@ -25,7 +25,7 @@ val g: int -> int = <fun>
# fg 3;;
Error: was expecting an integer and get a function
# f(g 3);; *This way there is no error*
# f(g 3);; (*This way there is no error*)
_: int = 7
```
@ -47,7 +47,7 @@ _: float -> int =<fun>
# length "toto" ;;
Error : Unboud
# String.lenght "toto";; *String is a library*
# String.lenght "toto";; (*String is a library*)
_: int = 4
```
@ -71,5 +71,5 @@ val square_of_pred: int -> int = <fun>
val pred: int -> int = <fun>
# square_of_pred 3;;
_: int = 4 *same things but with another method*
_: int = 4 (*same things but with another method*)
```