I recently learned about set exponentiation $B^{A}$, that is,
$B^{A} = \left \{ f \mid f:A\rightarrow B \right \}$
which is the set of all the functions which maps A to B. The number of function in a set exponentiation is given as $ \mid B \mid ^{\mid A \mid}$.
Let consider these sets S = {1,2,3} and T = {4,5}, then according to set exponentiation there are $2^3=8$ functions which map the above sets S to T.
Question 1: Can you please provide a simple example function which maps the above sets S and T? else can you provide another example for the same?
Question 2: How mathematicians proved the number of functions in set exponentiation is $ \mid B \mid ^{\mid A \mid}$ ?