Let $\mathbb{R}$ denote the set of all real numbers with the topology having as a basis all open intervals $$(a,b) \colon= \{ \ x \in \mathbb{R} \ \colon \ a < x< b \ \},$$ where $a$ and $b$ are any real numbers such that $a<b$.
Let $\mathbb{R}_l$ denote the set of real numbers with the topology having as a basis all the half-open intervals of the form $$[a,b) \colon= \{ \ x\in \mathbb{R} \ \colon \ a \leq x < b \ \},$$ where $a$ and $b$ are any two real numbers such that $a<b$.
Now what functions $f \colon \mathbb{R} \to \mathbb{R}$ are continuous when considered as maps from $\mathbb{R}$ to $\mathbb{R}_l$?
My work:
Let $[a, b)$ be a basis element for the topology of $\mathbb{R}_l$. Now, in order for $f$ to be continuous as a map from $\mathbb{R} \to \mathbb{R}_l$, the inverse image $f^{-1}\left([a,b)\right)$ must be open in $\mathbb{R}$ with the standard topology. If the latter set is empty, then it is (vacuously) open; so suppose $x_0 \in f^{-1}\left([a,b)\right)$. Then $f(x_0) \in [a,b)$; that is $a \leq f(x_0) < b$.
Since $x_0 \in f^{-1}\left([a,b)\right)$ and since $f^{-1}\left([a,b)\right)$ is open, there exists a basis element $(c,d)$ for the standard topology on $\mathbb{R}$ such that $x_0 \in (c,d) \subset f^{-1}\left([a,b)\right)$.
Let $\delta$ be the smaller of the two numbers $x_0-c$ and $d-x_0$. Then $\delta > 0$ and $$(x_0-\delta, x_0+\delta) \subset (c,d) \subset f^{-1}\left([a,b)\right);$$ so $$f\left( (x_0-\delta, x_0+\delta) \right) \subset f\left( f^{-1}\left( [a,b) \right) \right) \subset [a,b);$$ hence $$ f\left( (x_0-\delta, x_0+\delta) \right) \subset [a,b).$$
So for any $x_0 \in \mathbb{R}$ and for any $\epsilon > 0$, there is a $\delta > 0$ such that $$f(x_0) \leq f(x) < f(x_0) +\epsilon$$ for all $x\in \mathbb{R}$ such that $\vert x - x_0 \vert < \delta$.
Am I right? Is the above reasoning correct? Is what I've ended up with the complete answer?
What functions $f \colon \mathbb{R} \to \mathbb{R}$ are continuous when considered as maps from $\mathbb{R}_l \to \mathbb{R}$?