| <<< Kinds of operators | Index | Rational numbers >>> |
Operators are functions.
Operators are (almost) always unary or binary.
Operators can be members, or regular functions.
How many arguments does an operator take?
| Unary | Binary | |
|---|---|---|
| Member | 0 | 1 |
| Non-member | 1 | 2 |
It's an error to declare an operator with the wrong number of arguments.
| <<< Kinds of operators | Index | Rational numbers >>> |