vault backup: 2023-09-14 16:58:35

This commit is contained in:
2023-09-14 16:58:35 +02:00
parent d09a05e967
commit 079cfddfc2
2 changed files with 31 additions and 10 deletions

View File

@ -1,5 +1,7 @@
## 3.1. The alternative
<center><img src="https://gitea.louisgallet.fr/lgallet/epicours/raw/branch/main/Algo/S%C3%A9minaire/assets/if-meme.png" width=auto height=400 /> </center>
### The if structure
```Ocaml
if cond then expr1 else expr2
@ -21,6 +23,10 @@ val abs : int -> int <fun>
```
## 3.2. Exceptions
<center><img src="https://gitea.louisgallet.fr/lgallet/epicours/raw/branch/main/Algo/S%C3%A9minaire/assets/exception-meme.png" width=auto height=400 /> </center>
### Division by 0:
```Ocaml
# 1/0
@ -51,6 +57,10 @@ val div int -> int -> int = <fun>
```
## 3.3. Filtering
<center><img src="https://gitea.louisgallet.fr/lgallet/epicours/raw/branch/main/Algo/S%C3%A9minaire/assets/filter-meme.png " width=auto height=400 /> </center>
### Explicit filtering
> Explicit means that you matches the value