The Problem : Let $f:B \subset \mathbb{R} \to \mathbb{R}$ be uniformly continuous on a bounded set $B$. To show that $f(B)$ is bounded.
I have done the simplified case when $B$ is an interval (using Weierstrass' theorem and local boundedness induced by continuity). But what if $B$ is not an interval? Can we always write B as finite union of intervals? Any help will be greatly appreciated. Thank you.