summaryrefslogtreecommitdiff
path: root/ocaml/lib/year2025/day02/part01/range.mli
blob: e525e43defc170f4ce4e368516799239b1d60d75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
open Id

module Range : sig
  (** [t] is a range of values *)
  type t

  val create : int * int -> t
  (** [create (s, e)] is a range starting at [s] and ending at [e]. *)

  val collect : t -> ID.t list
  (** [collect r] is a list containing all elements within the range (inclusive). *)

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