summaryrefslogtreecommitdiff
path: root/ocaml/lib/year2025/day03/part01/battery.ml
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml/lib/year2025/day03/part01/battery.ml')
-rw-r--r--ocaml/lib/year2025/day03/part01/battery.ml13
1 files changed, 13 insertions, 0 deletions
diff --git a/ocaml/lib/year2025/day03/part01/battery.ml b/ocaml/lib/year2025/day03/part01/battery.ml
new file mode 100644
index 0000000..cb2d9e5
--- /dev/null
+++ b/ocaml/lib/year2025/day03/part01/battery.ml
@@ -0,0 +1,13 @@
+module Battery = struct
+ type t = int
+
+ let of_int i = i
+
+ let to_int b = b
+
+ let to_string = string_of_int
+
+ let compare = Int.compare
+
+ let pp = string_of_int
+end