README

vectie/bunnia/program does not have a README file

#
Program

pub struct Program[Model, Msg] {
id : String
model : Model
effects : Array[
Effect
]
view : (Model) ->
Node

update : (Model, Msg) -> Step[Model]
}

#
Step

pub struct Step[Model] {
model : Model
effects : Array[
Effect
]
patches : Array[
Patch
]
}

#
apply

fn[Model, Msg] apply(input : Program[Model, Msg], message : Msg) -> Program[Model, Msg]

#
current_view

fn[Model, Msg] current_view(input : Program[Model, Msg]) ->
Node

#
program

fn[Model, Msg] program(id~ : String, model~ : Model, view~ : (Model) ->
Node
, update~ : (Model, Msg) -> Step[Model], init_effects? : Array[
Effect
]) -> Program[Model, Msg]

#
step

fn[Model] step(model~ : Model, effects? : Array[
Effect
], patches? : Array[
Patch
]) -> Step[Model]

#
step_patches

fn[Model] step_patches(input : Step[Model]) ->
PatchPlan

Source Files

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io