Given the following function on $\mathbb{Z}$:
$x,y \in \mathbb{Z}: f(x, y) = x - y$
As I understand, this function is surjective, i.e. each element of $\mathbb{Z}$ is the image of at least one element of $A$*.
But, I'm not sure if it's injective, i.e. each output is the image of no more than one input*, since:
$f(10,5) = 5$ and $f(5,0) = 5$.
Since $f$ returns $5$ for each function, is it not injective? Or, do the inputs $(10,5) \rightarrow 5$ and $(5,0) \rightarrow 5$, i.e. constitute separate inputs?
*source of definitions: "A Book of Abstract Algebra"