Let $S$ be a set and let $B(S)$ be the set of all bounded real-valued functions on $S$. Define a metric on $B(S)$ by $$d(f,g) = \sup_{s\in S}|f(s)-g(s)|.$$ The problem I am trying to solve is to show that $B(S)$ is separable if and only if $S$ is finite.
I have seen this question posed in the present forum. (When is a metric space of bounded real valued functions separable?) The assertion that is demonstrated well enough for me is the converse: If...separable, then the domain is finite. I am stuck on the "easy" part, which is passed off simply with "If it's finite, (then) it's trivially separable as you have a finite dense subset. Just pick all the functions", according to Aram. (I have edited Aram's statement a bit.) What is finite by hypothesis is the domain of the functions. Let's take such a domain: $S=\{s_1,s_2,s_3\}$. The number of bounded, real valued functions one can have on such a domain is not countable. To take all of them as the dense set does not make $B(S)$ a separable metric space. Is there more to the argument that is implied and I am missing? In any event, I have not been able to prove the assertion in the title. Could someone please assist?