vault backup: 2023-10-29 15:40:19
This commit is contained in:
parent
fa577594df
commit
78b4a69222
@ -87,7 +87,7 @@ _: int list = [1 ; 2 ; 3; 4]
|
|||||||
|
|
||||||
## List manipulation
|
## List manipulation
|
||||||
### Traverse
|
### Traverse
|
||||||
Sequential traverse have to solution, first is the list is empty, then you stop. Else if the list is not empty, we extract the head and the tail, we treat the head and we traverse the trail (rec call)
|
Sequential traverse have two solution, first is the list is empty, then you stop. Else if the list is not empty, we extract the head and the tail, we treat the head and we traverse the trail (rec call)
|
||||||
```Ocaml
|
```Ocaml
|
||||||
# let p = (1, 2);;
|
# let p = (1, 2);;
|
||||||
val p: int*int = (1,2)
|
val p: int*int = (1,2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user