Bonsai_arrow_deprecated.With_incrval of_incr : 'a Bonsai_private_base.Import.Incr.t -> (_, 'a) tConstructs a Bonsai component whose result is always the same as its input Incremental node.
val of_module :
here:lexing_position ->
?sexp_of_model:('m -> Core.Sexp.t) ->
(module Bonsai_arrow_deprecated__.Import.Component_s_incr
with type Action.t = 'a
and type Input.t = 'i
and type Model.t = 'm
and type Result.t = 'r) ->
equal:('m -> 'm -> bool) ->
default_model:'m ->
('i, 'r) tval map :
('i, 'r1) t ->
f:
('r1 Bonsai_private_base.Import.Incr.t ->
'r2 Bonsai_private_base.Import.Incr.t) ->
('i, 'r2) tTransforms the result of a component, exposing the incrementality for optimization purposes.
val pure :
f:
('i Bonsai_private_base.Import.Incr.t ->
'r Bonsai_private_base.Import.Incr.t) ->
('i, 'r) tSame as Bonsai.pure but allows the user to optimize using Incremental.
val value_cutoff :
cutoff:'i Bonsai_private_base.Import.Incr.Cutoff.t ->
('i, 'i) tCreates a Bonsai component where the given cutoff is applied to the incremental node as input passes through the component, preventing a component from being recalculated unnecessarily.
See Incr.set_cutoff.