Do i understand correctly that morphisms in the category of sets $\mathbf{Set}$ are ordered triples $(f, A, B)$ where $f$ is a function $A\to B$?
It seems that it is often claimed, even in the Categories for the working mathematician by Mac Lane, that morphisms are functions, while this is obviously wrong, as the codomain operation on morphisms would not be possible to define (corectly) in this case.
(Incidentally, a similar error reappears in the definition of the category of functors: natural transformations are taken to be morphisms, but probably the correct definition of morphisms would be all triples $(\tau, S, T)$, where $\tau$ is a natural transformation from the functor $S$ to the functor $T$.)