package colibri2

  1. Overview
  2. Docs
type 'a t

A reference aware of a context

val create : creator -> 'a -> 'a t

Create a reference in this context with the given value

val set : 'a t -> 'a -> unit

Modify the reference

val get : 'a t -> 'a

Get the current value of the reference

val incr : int t -> unit

Increment the current value of the reference

val creator : 'a t -> creator
val pp : 'a Fmt.t -> 'a t Fmt.t
OCaml

Innovation. Community. Security.