vault backup: 2023-10-29 15:40:19
This commit is contained in:
@ -87,7 +87,7 @@ _: int list = [1 ; 2 ; 3; 4]
|
||||
|
||||
## List manipulation
|
||||
### 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
|
||||
# let p = (1, 2);;
|
||||
val p: int*int = (1,2)
|
||||
|
Reference in New Issue
Block a user