Operators
Arithmetic
| Operator | Meaning |
|---|---|
+ | Addition |
- | Subtraction / unary negation |
* | Multiplication |
/ | Division |
% | Remainder |
** | Exponentiation |
@ | Matrix multiplication |
Compound assignment forms are also available:
+= -= *= /= %=
Comparison
== != < <= > >=
is is accepted as an alias for equality (==).
Logical operators
and
or
not
Range operators
.. exclusive end
..= inclusive end
Examples:
1..5
1..=5