Parameter M.1-Component
module Input : Core_kernel.Tmodule Model : Core_kernel.Tmodule Action : sig ... endmodule Result : Core_kernel.Tval apply_action : inject:(Action.t -> Event.t) -> schedule_event:(Event.t -> unit) -> Input.t -> Model.t -> Action.t -> Model.tapply_actionis a transformation from a model and an action into a new model. During the transformation, the Component can also emit more actions viaschedule_eventor use Async to arrange forschedule_eventto be called later.