From f6b46743a4790ac9df5ecedbcd5a3366fb766001 Mon Sep 17 00:00:00 2001 From: Louis Date: Mon, 9 Oct 2023 14:13:58 +0200 Subject: [PATCH] vault backup: 2023-10-09 14:13:58 --- Algo/Courses/Chapter 6 - Lists (Exercises).md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Algo/Courses/Chapter 6 - Lists (Exercises).md b/Algo/Courses/Chapter 6 - Lists (Exercises).md index cf4415c..b56ee39 100644 --- a/Algo/Courses/Chapter 6 - Lists (Exercises).md +++ b/Algo/Courses/Chapter 6 - Lists (Exercises).md @@ -140,12 +140,12 @@ let rec growing = function ``` ## Exercise 3.2 -```Ocaml +```ocaml let rec delete x = function | [] -> [] | e::i -> if x == e then i - else if e < x then + else e::delete x i - else 1 ``` +j \ No newline at end of file