Suppose $X$ and $Y$ are two sets.
A mapping $f: X\to Y$ can be seen as a family of elements of $Y$ indexed by $X$, so I see $f$ is also usually written as $(Y_x)_{x \in X}$. Isn't it?
The set of all possible mappings from $X$ to $Y$, I see, has the notation $Y^X$. I wonder why it is like the power of some number to another?
How about the power set of $X$ written as $2^X$? I seem to have seen some explanation somewhere, but forget what it says.
Thanks and regards!