You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The associativity of an operator,
which determines how operators of the same precedence
are grouped in the absence of parentheses.
publicenum Associativity
Consider the expression a ~ b ~ c:
If the ~ operator is left-associative,
then the expression is interpreted as (a ~ b) ~ c.
If the ~ operator is right-associative,
then the expression is interpreted as a ~ (b ~ c).
For example,
the Swift subtraction operator (-) is left-associative,
such that 5 - 7 - 2 evaluates to -4 ((5 - 7) - 2)
rather than 0 (5 - (7 - 2)).
Inheritance
Codable, Hashable, String
Initializers
init?(_:)
Creates an instance initialized with the given syntax node.