Unbounded domain, existence of continuous fcn that is not uniformly continuous.

For an unbounded nonempty set of real numbers $D$, does there necessarily exist a continuous function $f$ that maps $D$ to the real numbers such that $f$ is not uniformly continuos?

No, there doesn't. Let $D = \mathbf N$, and let $f \colon \mathbf N \to \mathbf R$. We will show that $f$ is uniformly continuous: Let $\epsilon > 0$, let $\delta = \frac 12$. If $x,x' \in \mathbf N$ are given such that $|x-x'| < \delta = \frac 12$, we have $x=x'$, hence $f(x) = f(x')$, so $|f(x)-f(x')| < \epsilon$.
• That's an answer that i was thinking about. but does that not only prove it for the case where $D$ is the set of real numbers? Because there are other unbounded sets of real numbers? – nEv3r Oct 5 '16 at 9:36
• @nEv3r There are unbounded sets, where there is a non-uniformly continuous function. On $\mathbf N$ there isn't. So it proves there oppisite of "For all unbounded $D$, there is ...", which is: "There is some unbounded $D$, where there is not ....". – martini Oct 5 '16 at 9:41