Maps to

From testwiki
Jump to navigation Jump to search

Template:Short description Template:For Template:Infobox punctuation mark

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


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


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,[4] 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
    • Squares the input value
  • func sqr: x↦(2∗x)+(2∗x).
    • Calculates the perimeter of a square when given an input side length.


See also

References

Template:Reflist Template:Navbox punctuation

Template:Math-stub