I came across this post, but I wasn't sure if $\{\sin(1/x): x > 0\} \cup \{(0,y): y\in [-1,1]\}$ was equivalent to $\{\sin(1/x): x > 0\} \cup \{(0,0)\}$. By equivalent, I mean is solving the problem approached the same way?
Also, could someone please explain Stefan's answer in the link posted above? It seems much more concise than what I had originally tried.