vault backup: 2023-09-05 15:42:34
This commit is contained in:
parent
e5e53c0fc3
commit
da42ed5332
@ -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 ;;;
|
||||
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user