Hello

I just have some general question regarding functions. Consider the sets A and B. Now if , then the definition of the function fails but there is still a function , even though in both cases . So if we define as the set of functions from A to B, then if

, then

is that right reasoning ? I need this result in some proof.