Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
When you have a sequence of operators of the same precedence, the associativity determines whether they are evaluated left-to-right or right-to-left. For example, in the expression 17 – 2 – 9, one computes (17 – 2) – 9. The – operator is left-associative.
In Scala, all operators are left-associative except for