diff options
Diffstat (limited to 'ocaml/lib/year2025/day02/part02/id.ml')
| -rw-r--r-- | ocaml/lib/year2025/day02/part02/id.ml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ocaml/lib/year2025/day02/part02/id.ml b/ocaml/lib/year2025/day02/part02/id.ml new file mode 100644 index 0000000..f26c395 --- /dev/null +++ b/ocaml/lib/year2025/day02/part02/id.ml @@ -0,0 +1,12 @@ +module ID = struct + (** *) + type t = int + + let create num = num + + let incr = ( + ) 1 + + let to_string = string_of_int + + let pp id = "ID=" ^ string_of_int id +end |
