package par_incr

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Syntax module introduces some convenient operators for Var.set and Var.value operations.

val (:=) : 'a t -> 'a -> unit

Shorthand for Var.set

let x = Var.create 2
.
.
.
let () = x:= 3
val (!) : 'a t -> 'a

Shorthand for Var.value

let x = Var.create 2
let () = assert( !x = 2)
OCaml

Innovation. Community. Security.