vault backup: 2023-10-09 13:48:31

This commit is contained in:
2023-10-09 13:48:31 +02:00
parent c2017e86b9
commit 47b63721c2
2 changed files with 14 additions and 12 deletions

View File

@ -134,10 +134,12 @@ let concatenate_lists lst1 lst2 =
## Exercise 3.1
```Ocaml
let growing i =
if i = [] then false
else
let rec grow =
let e::t = i in
let test = e in
if e
let rec growing = function
| [] | [_] -> true
| x :: y :: rest -> if x <= y then growing (y :: rest) else false;;
```
## Exercise 3.2
```
let rec delete x = function
| e::i -> if x == e then