operators
Quick reference of binary operators and assignment operators used with math, string, matrix, set, and table data.
Math Operators
Operator | Meaning | Example |
|---|---|---|
| addition |
|
| subtraction or negation |
|
| multiplication |
|
| division |
|
| modulus (remainder) |
|
| exponentiation |
|
String Operators
Operator | Meaning | Example |
|---|---|---|
| concatenation |
|
Matrix Operators
Operator | Meaning | Example |
|---|---|---|
| element-wise addition |
|
| element-wise subtraction |
|
| element-wise multiplication |
|
| element-wise division |
|
| element-wise modulus |
|
| element-wise power |
|
| matrix multiplication |
|
| linear solve ( |
|
| dot product |
|
| cross product |
|
Set Operators
Operator | Meaning | Example |
|---|---|---|
| union |
|
| intersection |
|
| difference |
|
| complement |
|
| symmetric difference |
|
| subset |
|
| proper subset |
|
| superset |
|
| proper superset |
|
| element of |
|
| not element of |
|
Table Operators
Operator | Meaning | Example |
|---|---|---|
| inner join |
|
| left outer join |
|
| right outer join |
|
| full outer join |
|
| left semi join |
|
| left anti join |
|
Assignment Operators
Operator | Meaning | Example |
|---|---|---|
| define a new binding |
|
| assign/update an existing mutable binding |
|
| add-assign (in-place update) |
|
| subtract-assign |
|
| multiply-assign |
|
| divide-assign |
|
| exponent-assign (grammar form) |
|