Given a nonempty set $A$, define
$$F=\{f:A \to \{0,1\}\mid f \text{ is a function} \}.$$
Prove that $\mathcal{P(A)}$ is equipotent to $F$ ($\mathcal{P(A)}$~$F$), where $\mathcal{P}$ is the power set of $A$.
How would one prove this?
I try
Definate a function,, with $B \subseteq \mathcal{P}(a) $
\begin{array}{rcl} \phi: \mathcal{P}(A) & \to & F \\ B & \to & X_b:A \to \{0,1\} \\&& x \to X_B(x) = && \end{array}
Where $X_B(x)=1 $ if $x\in B$ and $X_B(x)=0 $ if $x \notin B$
How proof that $\phi$ is bijetive ??