Let $f: \mathbb{Z} \times \mathbb{Z} \rightarrow \mathbb{Z}$ be defined by $f((a,b))=b$.
I am confused as to whether $f \circ f$ exists here.
I was taught that for this composite function to exist, the codomain of the inner function must be equal to the domain of the outer function. Now I understand $\mathbb{Z}$ is not equal to $\mathbb{Z} \times \mathbb{Z}$, however since $f$ in this case doesn't even use $a$, is it at all possible for $f \circ f$ to indeed exist?