Bonsai.VarA Var.t is the primary method for making data obtained outside of Bonsai (maybe via an RPC) accessible inside a Bonsai application.
val create : 'a -> 'a tCreates a new Var.t with an initial value.
val update : 'a t -> f:('a -> 'a) -> unitUpdates the value inside of t. f is given the previous value of t so that you can reuse parts of the value if applicable
val set : 'a t -> 'a -> unitSets the value inside of t.
val get : 'a t -> 'aGets the value inside of t.