It is really strange, but LaTeX doesn't seem to include any tag for an arrow with vertical stroke (unicode character 21F8), used in mathematics to represent a partial function between sets (as reported in this article from Wiki.en). Do you know any workaround to this? I tried something like
\newcommand{\pto}{\to\hspace{-xyz cm}\shortmid \hspace{xyz cm}}
(for different values of xyz) but the outcome is not very satisfactory. Thank you in advance for any help.
P.S.: the symbol should fit in mathematical equations.