package prbnmcn-cgrph
Module Cgraph.VarSource
Var is the module type of variables, which are the simplest kind of input nodes available to users.
'a t is the type of a variable holding a value of type 'a
create_tracking node creates a variable that tracks the value of node. Such a variable behaves as a normal variable except that:
- it is initialized to the value of
nodeat creation time - when the value of
nodechanges, the variable is reset to that ofnode.
set v x updates the variable v to hold the value x. This automatically invalidates all nodes that depend directly and indirectly on v.