Reference
Operators
Equality
| Input | Two arguments of equatable type. |
| Output | True if equal, false otherwise. |
Symbol
Example
Inequality
| Input | Two arguments of equatable type. |
| Output | True if not equal, false otherwise. |
Symbol
Example
Greater than
| Input | Two arguments of the same type. |
| Output | True if first argument exceeds the second, false otherwise. |
Symbol
Example
Less than
| Input | Two arguments of the same type. |
| Output | True if first argument is less than second, false otherwise. |
Symbol
Example
Greater than or equal
| Input | Two arguments of the same type. |
| Output | True if first argument is greater than or equal to second, false otherwise. |
Symbol
Example
Less than or equal
| Input | Two arguments of the same type. |
| Output | True if first argument is less than or equal to second, false otherwise. |
Symbol
Example
Addition
| Input | Two arguments of addable type. |
| Output | The combined result. |
Symbol
Example
Subtraction
| Input | Two arguments of subtractable type. |
| Output | The result of the subtraction. |
Symbol
Example
Multiplication
| Input | Two numbers. |
| Output | The product of the numbers. |
Symbol
Example
Division
| Input | Two numbers. |
| Output | The quotient. |
Symbol
Example
Modulo
| Input | Two numbers. |
| Output | The remainder of division. |
Symbol
Example
And (short-circuit)
| Input | Two boolean arguments. |
| Output | True only if both arguments are true, false otherwise. Short-circuit (lazy) - the second operand is only evaluated if the first is true. |
Symbol
Example
And (strict)
| Input | Two boolean arguments. |
| Output | True only if both arguments are true, false otherwise. Strict (eager) - both operands are always evaluated. |
Symbol
Example
Or (short-circuit)
| Input | Two boolean arguments. |
| Output | True if at least one argument is true, false otherwise. Short-circuit (lazy) - the second operand is only evaluated if the first is false. |
Symbol
Example
Or (strict)
| Input | Two boolean arguments. |
| Output | True if at least one argument is true, false otherwise. Strict (eager) - both operands are always evaluated. |
Symbol
Example
Not
| Input | One boolean argument. |
| Output | True if argument is false; false if argument is true. |
Symbol
Example