ML
Size: a a a
ML
AM
AM
ML
AD
AM
AD
I
AM
IP
AD
fun State.reduce(msg: Msg): Pair<State, Cmd>
fun State.reduce(msg: Msg, handler: (Cmd) -> Unit): State {
val s = this.copy(…)
handler.invoke(Cmd.A, Cmd.B)
return s
}
AD
AM
AD
А
KernelF does not support generics in user defined functions, another consequence of our goal of SIMPLICITY
AM
IP
AM
IP
IP