summaryrefslogtreecommitdiff
path: root/2025/ocaml/lib/presentation
diff options
context:
space:
mode:
Diffstat (limited to '2025/ocaml/lib/presentation')
-rw-r--r--2025/ocaml/lib/presentation/cli.ml15
1 files changed, 14 insertions, 1 deletions
diff --git a/2025/ocaml/lib/presentation/cli.ml b/2025/ocaml/lib/presentation/cli.ml
index 08b1552..6344d07 100644
--- a/2025/ocaml/lib/presentation/cli.ml
+++ b/2025/ocaml/lib/presentation/cli.ml
@@ -1,6 +1,19 @@
+let day_1_example = {|L68
+L30
+R48
+L5
+R60
+L55
+L1
+L99
+R14
+L82|}
+
let run_day = function
| 1 ->
- Application.Day_1.run ()
+ let answer = Application.Day_1.solve day_1_example () in
+ Logs.app (fun m -> m "%d" answer) ;
+ 0
| _ ->
failwith "day not implemented"