I have seen notations in maths scripts similar to the following:
$f: \{1,2\} \rightarrow \{3, 4\}$
$1 \mapsto 3$
$2 \mapsto 4$
but not once compact mappings similar to the relation in the set notation {(1,3), (2,4)}
Would you say the following definition is ambiguous or even incorrect?
$f: \{1,2\} \rightarrow \{3, 4\}, \{1 \mapsto 3, 2 \mapsto 4\}$
I am able to know exactly what you mean here. So I don't think it's ambiguous or incorrect...
Of course, you might instead write: $f(1)=3$ and $f(2)=4$...