I am trying to prove the following:
In $C[0,1]$ the functions that preserve the rationals (i.e. $f(\mathbb{Q})\subseteq \mathbb{Q}$) are dense.
So far, I have not made much progress- I am aware that $A$ is dense in $B$ iff $A$ has non-empty intersection with each open set $U$ in $B$ but am not sure how to apply this definition. I have also thought about showing that the closure of $X$ (where $X$ is the set of functions that preserve the rationals) is equal to $C[0,1]$ by a double-inclusion proof but I have also made no progress with this approach. Am I on the right track or should I change my approach?