reduce

fun reduce(appData: AppData, transition: StateMachine.Transition.Valid<State, Event, Any>): AppData
fun reduce(appData: AppData, toState: State, event: Event): AppData