vault backup: 2023-10-29 15:40:19

This commit is contained in:
Louis Gallet 2023-10-29 15:40:19 +01:00
parent fa577594df
commit 78b4a69222
Signed by: lgallet
SSH Key Fingerprint: SHA256:qnW7pk4EoMRR0UftZLZQKSMUImbEFsiruLC7jbCHJAY

View File

@ -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)