alsoWith

infix fun alsoWith(effect: (S) -> Unit)

Adds a side effect that only uses the state.