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

This commit is contained in:
2023-09-05 15:42:34 +02:00
parent e5e53c0fc3
commit da42ed5332

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 ;;;
```