Find an example of a continuous function $f:\mathbb{R} \rightarrow \mathbb{R}$ with the following property,
For every $\epsilon >0$ there exists $\delta > 0$ such that $|f(x)-f(y)|< \epsilon\ $ whenever $x,y \in \mathbb{R}$ and $|x-y|< \delta$.
Now find an example of a continuous function for which the property doesn't hold.
Attempt;
From what I can gather , this question wants to functions, one that is continuous everywhere and when that is continuous but not everywhere continuous... is this correct?
Function for which the property holds
$f(x)=x$ is continuous everywhere and so the definition holds for all $x,y \in \mathbb{R}$
Function for which property doesn't hold
Are these correct, have I interpreted the question correctly?
Any help would be much appreciated.