Appendix A: Precedence

The table below defines the relative precedence of operators in Magma, with decreasing strength (so operators higher in the table bind more strongly). The column on the right indicates whether the operator is left-, right-, or non-associative.

` " left
(left
[left
assignedright
non
#non
&*&+&and&cat&join&meet&ornon
$ $$ non
. left
@ @@ left
! !! right
^ right
unary- right
catleft
*/divmod left
+- left
meetleft
sdiffleft
diffleft
joinleft
adjinnotadjnotinnotsubsetsubsetnon
cmpeqcmpneeqgegtleltneleft
notright
andleft
orxor left
^^non
?elseselect right
->left
=left
:=iswhere left

V2.28, 13 July 2023