Legend:
Library
Module
Module type
Parameter
Class
Class type
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.
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
.