I'm reading a book, I quote from it:
"" A function assigns an element of one set, called the domain, to elements of another
set, called the codomain. The notation $f: A \to B$ indicates that $f$ is a function with domain, $A$, and codomain, $B$. The familiar notation $f(a)=b$ indicates that f assigns the element $b\in B$ to $a$. Here $b$ would be called the value of $f$ at argument $a$. ""
I always thought $f(a)=b$ assings the element $a\in A$ to $b$, since $a$ is the input and $b$ is the output.
Am I wrong? If yes explain please.