The maps to symbol, ↦, is a rightward arrow protruding from a vertical bar. It is used in mathematics and in computer science to denote functions.

In the Unicode character set, the symbol is code point U+21A6.

Other uses

The "Maps to" operator is useful when it is desirable to avoid assigning names to functions.

This can avoid possible misinterpretations due to poor naming conventions, such as avoiding the following name conflict from these two functions existing in the same file or in the same mathematical proof:

  • func sqr:x ↦ x ∗ x {\displaystyle x\mapsto x*x} Squares the input value
  • func sqr:x ↦ ( 2 ∗ x ) + ( 2 ∗ x ) {\displaystyle x\mapsto (2*x)+(2*x)}. Calculates the perimeter of a square when given an input side length.

See also

  • Arrow notation – e.g., x ↦ x + 1 {\displaystyle x\mapsto x+1}, also known as map