vault backup: 2023-10-13 14:16:48

This commit is contained in:
2023-10-13 14:16:48 +02:00
parent 0784533b0f
commit 7c1937d8ac
2 changed files with 13 additions and 6 deletions

View File

@ -137,6 +137,13 @@ let concatenate_lists lst1 lst2 =
let rec growing = function
| [] | [_] -> true
| x :: y :: rest -> if x <= y then growing (y :: rest) else false;;
let growing = function
|[] -> true
|l -> let rec g = function
|[e]-> true
| e1::e2::t -> if e1 > e2 then false else g(e2::t)
in g l;;
```
## Exercise 3.2