vault backup: 2023-09-05 15:42:34

This commit is contained in:
Louis Gallet 2023-09-05 15:42:34 +02:00
parent e5e53c0fc3
commit da42ed5332
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

View File

@ -10,9 +10,11 @@ if cond then expr1 else expr2
```Ocaml
# if 1<2 then "higher" else "lower" ;;
-: string = "higher"
```
**Exercise : absolute program**
```Ocaml
# let abs(x) =
if x>0 then x
else -x ;;;
```