summaryrefslogtreecommitdiff
path: root/2025/ocaml/lib/application/d04p01.mli
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2025-12-08 01:55:28 +0100
committerDJ O'Leary <dijitol@proton.me>2025-12-08 01:57:20 +0100
commit0f34d9a931791406d2cabf282742530195f71927 (patch)
tree076e546f64f8f541e91bf135d5d5c78cde173ccf /2025/ocaml/lib/application/d04p01.mli
parent63c4dea442acb32db82318b4399ac05fb955e6d0 (diff)
refactor(2025,ocaml): use result type for answers to allow for returning errors
Diffstat (limited to '2025/ocaml/lib/application/d04p01.mli')
-rw-r--r--2025/ocaml/lib/application/d04p01.mli4
1 files changed, 2 insertions, 2 deletions
diff --git a/2025/ocaml/lib/application/d04p01.mli b/2025/ocaml/lib/application/d04p01.mli
index 2fd4e44..873acff 100644
--- a/2025/ocaml/lib/application/d04p01.mli
+++ b/2025/ocaml/lib/application/d04p01.mli
@@ -1,4 +1,4 @@
-val solve : string -> unit -> int
+val solve : string -> unit -> (int, string) result
(** [solve input ()] is the solution for the first part of the fourth day of advent of code 2025 for [input].
- The solution for an empty input is 0.
+ The solution for an empty input is [Error msg].
Requires: [input] to be a string. *)