This commit is contained in:
2025-10-10 16:31:53 +02:00
parent 7cf158570d
commit bae49d03ec
4 changed files with 38 additions and 0 deletions

7
algo/ocaml/cours.ml Normal file
View File

@@ -0,0 +1,7 @@
(*3 : construire une liste*)
let rec f = function
0->[]
|n -> n::f(n-1);;
(*val f:int -> int list =<fun>*)