From this post and to (co)completness of the category Top of topological spaces and continuous functions we know that for any diagram $B_i$ and an object $A$ in Top, there are natural maps of sets:$\newcommand{\colim}{\operatorname{colim}}$
- $\colim C(A,B_i) \to C(A, \colim B_i)$
- $\colim C(B_i,A) \to C(\lim B_i, A)$
For any topological spaces, equip $C(X,Y)$ with the compact-open topology; then $C(X,Y)$ is itself a topological space. When is the map of $1$ (resp. $2$) a surjective(or at-least has dense range) continuous map?
Related: This post on the dual question and this post on naturality of the aforementioned maps.