Operators
Expressions are combined and manipulated using operators. The following table lists the operators from highest to lowest precedence; the second column (A) shows the operators’ associativity. These operators should be familiar to you if you have any C, Java, or Perl experience.
|
Operators |
Associativity |
|---|---|
|
|
Right |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Nonassociative |
|
|
Nonassociative |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Left |
|
|
Left |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access