Example. [00A4]

g is not not injective, since \diamond \neq \square but g(\diamond ) = g(\square ) = 6. We could easily make a different function with the same domain and codomain which is injective. For example, the function which is the same as g on \triangle and \square but sends \diamond to 349.