reduce

abstract fun reduce(acc: State, action: Action): State

Returns the next state, given the current state and an action to handle.