Module State_builder.Counter

Creates a projectified counter. That starts at 0

Parameters

module Info : sig ... end

Signature

val next : unit -> int

Increments the counter and returns a fresh value

val get : unit -> int
  • returns

    the current value of the counter, without incrementing it.

  • since Fluorine-20130401
val self : State.t
  • since Oxygen-20120901