... fun onEmailChanged(model: Model, event: EmailInputChanged): Next<Model, Effect> = next(model.copy(email = event.email, canLogin = verifyCreds(event.email, model.password))) fun onPassChanged(model: Model, event: PasswordInputChanged): Next<Model, Effect> = next(model.copy(pass = event.password, canLogin = verifyCreds(model.email, event.password)))