vault backup: 2023-09-04 17:01:00

This commit is contained in:
2023-09-04 17:01:00 +02:00
parent b022a5bc90
commit c42e94e329
2 changed files with 20 additions and 18 deletions

View File

@ -104,16 +104,16 @@ Error *because x is 1.2 in our current evaluation*
- Compatible operator : -. ; +. ; * . ; /.
- Booleans: ``bool``
- Can be ``true``or ``false``
```Ocaml
# let x = 2 and y = 1 in x/y > 1;;
_: bool = true
# let x = 2 and y = 0 in x/y > 1;;
Exception: Division by zero
# let x = 2 and y = 0 in y<>0 && x/y> 1;;
_: bool = false
```
```Ocaml
# let x = 2 and y = 1 in x/y > 1;;
_: bool = true
# let x = 2 and y = 0 in x/y > 1;;
Exception: Division by zero
# let x = 2 and y = 0 in y<>0 && x/y> 1;;
_: bool = false
```
- Char: `char`
@ -121,6 +121,9 @@ _: bool = false
```Ocaml
# 'a'= 'A';;
_: bool = false
# 'a'
- : char = 'a'
```
- String: `string`
@ -134,8 +137,7 @@ _: string = "Hello World"
# "abc".[1]
_: char = "b"
```
⚠️ Les minuscules passent avant les majuscules
### Comparaison