Solution (source code)

= Solution

For a set $S$, let $\iota_s:1\to S$ select $s$. Given any family $f_s:1\to X$, define $f:S\to X$ by $f(s)=f_s(*)$. Then $f\iota_s=f_s$, and these equations determine every value of $f$, so it is unique.

This is precisely the universal property of a <coproduct in a category>, giving
$$
\boxed{S\cong\coprod_{s\in S}1.}
$$
The empty set gives the empty <coproduct in a category>, namely the <initial object> of the <Category of sets>.