package bonsai
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=43f35d648644492d776bf2c7b86c8227e7793615b6a658432e95f8dccd3631f8
md5=b5e743dbfa64d0da5fd660f14cd0b549
doc/bonsai.web/Bonsai_web/Bonsai/With_incr/index.html
Module Bonsai.With_incr
Constructs a bonsai component whose result is always the same as its input Incremental node.
Same as Bonsai.pure
but allows the user to optimize using Incremental.
Creates a bonsai component where the given cutoff is applied to the incremental node for the component's model, preventing a component from being recalculated unnecessarily.
See Incr.set_cutoff
.
val value_cutoff : cutoff:'input Incremental.Cutoff.t -> ('input, 'input) 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
.
Transforms the result of a component, exposing the incrementality for optimization purposes.
Transforms the input of a component, exposing the incrementality for optimization purposes. The signature of f
is reversed from most other map functions.
module type S = sig ... end
val of_module :
('input, 'model, 'action, 'result) component_s ->
default_model:'model ->
('input, 'result) t