)CLEAR
CLEAR WS

      A ← 'ZIPPITY' 'DOO' 'DAH'
      ∊2⌷A
DOO
      (∊2⌷A) ← 0
      A
 ZIPPITY  0 0 0  DAH

So far, so good.  Let's try it again with brackets.

      A ← 'ZIPPITY' 'DOO' 'DAH'
      ∊A[2]
DOO
      (∊A[2]) ← 0
      A
 Z 0 PPITY  DOO DAH

Clearly, it's parsing the selective specification as (∊A)[2] and not
∊(A[2]).

APL2 doesn't even try, and just gives a syntax error.

Reply via email to