forked from orion/obsidian
419 B
419 B
Infix Operators are left-, right- or non-associative (infixl
, infixr
, infix
respectively)
When multiple infix operators with the same associativity & precedence are chained, associativity tells the language how to group the expressions.
e.g. &&
is right-associative, while *
is left associative:
a && b && c
-- interpreted as
(a && (b && c))
a * b * c
-- interpreted as
((a * b) * c)