Thinking about this string diagrammatically, if I understand corectly, \$$\mathrm{hom}\$$ (if you pardon me using a drawing) looks something like: