Suppose $(X, \rho)$ is a metric space. For a nonempty set $E \subset X$, define $f: X \rightarrow \mathbb{R}$ by $f(x) = \text{dist}(x,E) = \text{inf} \{\rho(x,y): y \in E \}$. State whether $f$ is uniformly continuous and prove it.
I am thinking that it is uniformly continuous because if $x$ and $y$ are close together, they should also be about the same distance from $E$. And I think that this should be true no matter which $x$ and $y$ are chosen (So that it is uniformly continuous, not merely continuous). But I am not sure how to go about the proof. Specifically I am somewhat at a loss as to how to deal with the quantity
$$ | \text{inf}\{ \rho(x,z): z \in E \} - \text{inf}\{ \rho(y,z): z \in E \}|$$
Any help would be appreciated.