Consider the function $f : [1,2] \cup [3,4] \to \mathbb{R}$ where $f(x) = x$. Denote the domain by $D$. Is it continuous at $x=2$? This is not a homework question, even if it looks very fundamental and commonly asked. This is only an example with which I'm trying to demonstrate my lack of understanding.
Using the $\epsilon$ - $\delta$ definition : For any $\epsilon > 0$, there has to be a $\delta > 0$ such that for all $x \in D$, $0 \leq |x-2| < \delta \implies |f(x)-f(2)| < \epsilon$. Well simply set $\delta = \epsilon$ and we are done. We always say two sided limit has to exist, but this seems more like the existence of one sided limit at that point is enough.
Using the sequential definition : $\forall (x_n)_{n \in \mathbb{N}} \in D : \displaystyle\lim_{n \to \infty} x_n = 2 \implies \displaystyle\lim_{n \to \infty} = f(2)$. This too works, given $f(x) = x$, and the result is immediate. Again note that this doesn't require $(x_n)$ to be the sequences from the right side (in crude terms).
Can anyone explain what exactly I am missing?