package base

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | T : 'a Stdlib.ref * 'a -> t
val set : t -> unit

set (T (r, x)) is equivalent to r := x.

val sets : t list -> unit

sets ts = List.iter ts ~f:set

val snapshot : t -> t

snapshot (T (r, _)) returns T (r, !r).

OCaml

Innovation. Community. Security.