From 0f34d9a931791406d2cabf282742530195f71927 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Mon, 8 Dec 2025 01:55:28 +0100 Subject: refactor(2025,ocaml): use result type for answers to allow for returning errors --- 2025/ocaml/lib/application/d01p02.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '2025/ocaml/lib/application/d01p02.mli') diff --git a/2025/ocaml/lib/application/d01p02.mli b/2025/ocaml/lib/application/d01p02.mli index 33aa63f..9e9a2f2 100644 --- a/2025/ocaml/lib/application/d01p02.mli +++ b/2025/ocaml/lib/application/d01p02.mli @@ -1,4 +1,4 @@ -val solve : string -> unit -> int +val solve : string -> unit -> (int, string) result (** [solve input ()] is the solution for the second part of the first 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 multiline string using `\n` as it's line separator. *) -- cgit v1.2.3