vault backup: 2023-10-09 14:13:58
This commit is contained in:
parent
0f93510572
commit
f6b46743a4
@ -140,12 +140,12 @@ let rec growing = function
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Exercise 3.2
|
## Exercise 3.2
|
||||||
```Ocaml
|
```ocaml
|
||||||
let rec delete x = function
|
let rec delete x = function
|
||||||
| [] -> []
|
| [] -> []
|
||||||
| e::i ->
|
| e::i ->
|
||||||
if x == e then i
|
if x == e then i
|
||||||
else if e < x then
|
else
|
||||||
e::delete x i
|
e::delete x i
|
||||||
else 1
|
|
||||||
```
|
```
|
||||||
|
j
|
Loading…
x
Reference in New Issue
Block a user