Is the function from $\mathbb{R}$ to $\mathbb{R}$ that maps every compact set to compact set and connected set to connected set continious?
I know that if the function maps only compact set (respectively connected) to compact (connected) it's not continious. I saw the counterexample. Is it also true when we take both properties?
Thanks in advance.