Nantes Université

Skip to content
Extraits de code Groupes Projets
Valider 8177225c rédigé par Ludwig GUERIN's avatar Ludwig GUERIN
Parcourir les fichiers

More TP1

parent 19248c94
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -58,4 +58,8 @@ let split l =
| (0, l) -> (g, l)
| (i, h::t) -> impl (h::g) (i-1, t)
in impl [] ((length l) / 2, l);;
\ No newline at end of file
in impl [] ((length l) / 2, l);;
let rec filter p = function
| [] -> []
| h::t -> if p h then h::(filter p t) else filter p t;;
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter