pub fn apply(base: &State, updates: &State) -> State
Creates a new state by copying base and applying updates.