Let $R$ be any ring , $X$ be any non-empty set & consider $M=R^{X}$ then M is a R-module with usual addition and scalar multiplication operations
Here $R^{X}=\{f\mid f:X \to R\}$
I need to use this statement to find a particular example taking $X$ to be a particular set (say) $X=\{1,2\}$, then how shall I definition a function for such a domain and codomain?