Skip to main content
2 of 2
added 31 characters in body; edited title

Infinite topological spaces such that every subset is a retract

Let $X$ be an infinite set and let $(X,\tau)$ be a topological space such that for every non-empty $A\subseteq X$ there is a continuous map $r:X\to A$ such that $r(a) = a$ for all $a\in A$. Does this imply that $\tau$ is either discrete ($\tau = \mathcal{P}(X)$) or indiscrete ($\tau = \{\emptyset, X\}$)?