summaryrefslogtreecommitdiff
path: root/ocaml/lib/year2025/day03/part01/battery_bank.mli
blob: bffc4cb451dd0f57edb831fdf4302d14426c4362 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
open Battery

module BatteryBank : sig
  type t

  val highest_joltage : t -> int
  (** [highest_joltage bb] is an integer created from the two highest
      digits in [bb].
      Raises: [Assert_failure] if [bb] is empty. *)

  val of_string : string -> t

  val of_list : Battery.t list -> t

  val to_list : t -> Battery.t list

  val pp : t -> string
end