Module Bonsai_arrow_deprecated.With_incr

val of_incr : 'a Bonsai_private_base.Import.Incr.t -> (_, 'a) t

Constructs 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) t
val map : ('i, 'r1) t -> f: ('r1 Bonsai_private_base.Import.Incr.t -> 'r2 Bonsai_private_base.Import.Incr.t) -> ('i, 'r2) t

Transforms the result of a component, exposing the incrementality for optimization purposes.

Same 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) t

Creates 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.