Given two sets $X$, $Y$ and a set of functions $F \subset Y^X$ such that every constant function from $X$ to $Y$ is in $F$.
Question: Are there topologies on $X$ and $Y$ such that the set $C(X,Y)$ of continuous function is equal to $F$ ?
It is clear that it suffices to find a suitable topology on $Y$ and then take the initial topology on $X$ with respect to all functions in $F$. In general, if we take any topology on $Y$ and initial topology on $X$ with respect to all functions in $F$, we will get $F \subset C(X,Y)$. But in many cases we are not able to conclude equality, e.g. if $card(X) = card(Y)$, $F \neq Y^X$ but contains some bijective function and Y carries the discrete topology, we will get as initial topology on X again the discrete topology and therefore we have that $C(X,Y) = Y^X \neq F$.
A possible approach could be to endow $F$ with some topology and consider $Y$ as a subspace of $F$ (by identifying it with the set of constant functions from $X$ to $Y$). But how to find a convenient topology on $F$ that leads us to $F = C(X,Y)$?