Bonsai_extra_value_utilitiesmodule Bonsai := Bonsai.Contmodule Effect := Bonsai.Effectval value_with_override :
?sexp_of_model:('a -> Core.Sexp.t) ->
?equal:('a -> 'a -> bool) ->
'a Bonsai.t ->
Bonsai.graph @ local ->
'a Bonsai.t * ('a -> unit Effect.t) Bonsai.tExtends a Bonsai.t by providing a setter effect that can be used to override the returned value. The computation will initially evaluate to the input Bonsai.t. Once the returned overriding effect is dispatched at least once, the computation will evaluate to the override value provided. The effect can be scheduled more than once to update the override. Use with Bonsai.with_model_resetter_n in order to revert the override (see the corresponding test in test/of_bonsai_itself/test_cont_bonsai.ml for an example).
val dynamic_cutoff :
'a Bonsai.t ->
equal:('a -> 'a -> bool) Bonsai.t ->
Bonsai.graph @ local ->
'a Bonsai.tLike Bonsai.cutoff but where the equal function can be determined dynamically.