summaryrefslogtreecommitdiff
path: root/ocaml/lib/year2025/day02/part02/id.mli
blob: a512593e852e3a9b30757773cfbc72728381bf8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module ID : sig
  (** [t] is a ID within a range *)
  type t

  val create : int -> t
  (** [create num] is an ID [t] *)

  val incr : t -> t
  (** [incr id] is the next [id] in the sequence *)

  val to_string : t -> string
  (** [to_string id] is an string representation of [id] *)

  val pp : t -> string
  (** [pp id] is a pretty string representing [id] *)
end