Prefix notation
There is also a function abbreviation in MM-Talk for some functions that are only applied to one object. A typical example of such functions is the sign of a number.
A negative number actually consists of two parts, namely the number itself and a function that reverses the sign. In the long form, the function (in postfix notation) is placed after the object, e.g. "3.UMINUS".
The function abbreviation of such a function is placed before the object, i.e. in prefix notation, e.g. "-3".
The following prefix notations are possible in MM-Talk:
Prefix | Abbreviation | Function |
---|---|---|
UPlus | + | Unary plus (sign) |
UMinus | - | Unary minus (sign) |
Need | Need | Logical not (unary) |