5.7 Array Access

Array access is expressed by using an opening bracket [ followed by the index expression and a closing bracket ].

expr[indexExpr]

This notation is allowed with arbitrary expressions, but at typing level only certain combinations are admitted: