What must be true of a function $f:\mathbb{R}\to \mathbb{R}$ and a sequence $(x_n)_{n \in \mathbb{N}} \to L$ such that $$\lim_{n \to\infty} f(x_n) = f(\lim_{n\to\infty} x_n)$$
I don't know if it's true for any general class of functions but I think it's true for functions continuous is some neighborhood of $L$.