const visit = <V, R, E, W>(path: string): StateUpdate<V, R, E, W> => (
  state,
) => {
  return set(
    state,