{{tag>Brouillon Prog}} # Notes ocaml Voir : * https://linuxfr.org/news/apprendre-la-programmation-fonctionnelle-avec-le-mooc-ocaml Exemple de factorielle ~~~ocaml let rec fact n = if (n=0) then 1 else n*(fact(n-1));; ~~~