# Example of function which are closed function but may not be continuous

I've found that function both open and closed but fail to be continuous. Now, I want to find an example of closed mapping that may not be continuous.

• How about just $f(x) = \begin{cases} 0 & x < 0 \\ 1 & x \ge 0 \end{cases}$ – A.S Apr 4 '13 at 5:09
• Superficially, the first sentence of your question seems to be enough to answer the second. Could you clarify please? – Erick Wong Apr 4 '13 at 5:28