Bonsai.Incrval value_cutoff : 'a Value.t -> equal:('a -> 'a -> bool) -> 'a Computation.tA Value.t passed through value_cutoff will only trigger changes on its dependents when the value changes according to the provided equality function
val model_cutoff : 'a Computation.t -> 'a Computation.tYou can use model_cutoff to override the value cutoff for the model for a computation to the equality function that your computation specified via the Model.equal function passed to of_module, state, etc...
val compute :
'a Value.t ->
f:('a Ui_incr.t -> 'b Ui_incr.t) ->
'b Computation.tUse compute to move a function from the incremental world into the bonsai world.
If you've got an incremental, you can convert it to a value with this function.
val with_clock : (Ui_incr.Clock.t -> 'a Ui_incr.t) -> 'a Computation.tCompute some incremental value based on the global clock. Using this clock instead of Incr.clock is the more testable approach, since it allows tests to control how time moves forward.