reduce

fun <S> ChangedState<S>.reduce(state: S): S

Transforms the given state according to ChangedState and returns the new S.