It depends on the definition, but here is one answer.
You can definite limits in a very general setting: for any topological space $X$, we say that a sequence $\{x_n\}$ converges to $x\in X$ if, for any open set $U\subset X$ containing $x$, there exists $N\in\Bbb N$ for which $n>N$ implies $x_n\in U$.
For a function $f\colon X\to Y$, we can then define $\lim\limits_{x\to c}f(x)=y$ to mean "if $\{x_n\}$ is a sequence of points in $X\setminus\{c\}$ which converges to $c$, then $\{f(x_n)\}$ converges to $y$."
So for the function $f\colon \{1\}\to\{1\}$, there are no sequences at all with values in $\{1\}\setminus\{1\}$. So it is vacuously true that, for every such sequence $\{x_n\}$, the corresponding $\{f(x_n)\}$ converges to $1$.
In my first answer, I really was writing the definition of the statement "$f$ is continuous at $1$ and $f(1)=1$." As in the familiar setting of real functions, continuity implies the existence of the limit.