package prbnmcn-cgrph

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

Var is the module type of variables, which are the first kind of input nodes available to users.

type 'a t

'a t is the type of a variable holding a value of type 'a

val create : 'a -> 'a t

create x creates a variable with initial value x

val peek : 'a t -> 'a

peek v returns the value currently held in the variable.

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

set v x updates the variable v to hold the value x. This automatically invalidates all nodes that depend directly and indirectly on v.

OCaml

Innovation. Community. Security.