Suppose I have a sequence of real-numbers $\{a_n\}_n$ and that $\lim_{n \rightarrow \infty}a_n=a$ where $a$ can be finite or infinite. Consider a function $f(\cdot)$ of $a_n$. Under which conditions $$ \lim_{n\rightarrow \infty}f(a_n)=f(\lim_{n\rightarrow \infty}a_n) $$
?
Similar questions have been answered here and here but I would like to know whether we can get a similar result without assuming continuity of $f$ and $a$ finite.