I'm looking for a function $f : \mathbb{R} \rightarrow \mathbb{R}$ such that f is not continuous, and moreover $\forall \epsilon > 0, \exists \delta > 0$ such that $|f(x) - f(y)| < \epsilon \implies |x - y| < \delta$.
I can't seem to construct such a function, yet I know this should be true, given that the epsilon-delta definition of continuity has the implication the other way around. There is a similar question here but with different quantifiers.