Let $G$ be a group and $x \in G$ with $|x|=k$.
Let $\mu_n:=\{z \in \mathbb{C} \mid z^n=1\}$ and $\mu=\bigcup_{n=1}^\infty \mu_n$.
I want to show that $\operatorname{Hom}(\langle x \rangle, \mu) \cong \mu_k$. How do I identify elements of the LHS with elements of the RHS?
Define the evaluation in $x$ $$ev_x :\operatorname{Hom}(\langle x \rangle, \mu) \longrightarrow \mu_n \ \ \ , \ \ \ f \mapsto f(x)$$
Note that this is well defined, since $(f(x))^n = f(x^n) = f(1) = 1$.
The kernel is trivial since $\forall f \in \ker (ev_x), \forall k $, you have $f(x^k) = (f(x))^k = (ev_x(f))^k = 1^k = 1$.
Finally $ev_x$ is surjective since $\forall z \in \mu_n$ you can define $f : \langle x \rangle \longrightarrow \mu$ $$f(x^k) = z^k$$ (it is well defined!) and you have that $f \in \operatorname{Hom}(\langle x \rangle, \mu) $ and $ev_x(f) = z$.