© An implementation flaw shows up when an empty ©array is assigned using Þ (or []), take † and
© expand \ .
© The following example works as expected, the empty array is not altered by the pick specification
© This triggers a system failure of a
© competitor's interpreter. Nobody is perfect.
A„0½›¼2 ª A1„A ª (3œ4†A)„5 5½¼25 ª A(match)A1
1
©But the following strictly equivalent specification
© gives an original result.
© (Note that the referred to competitor's system
© produces a correct result as for the few next
© examples)
A„0½›¼2 ª A1„A ª (3Þ4†A)„›5 5½¼25 ª A(match)A1
0
†A1 © A's old prototype
0 0
½A
0
†A © ...and brand new one.
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
© As for take and expand A's prototype is altered
© the same way if A is nested. With A„0½¼2 one
© gets a less colorful result: a plain scalar blank
© prototype.
A„0½¼2 ª A1„A ª (0 0 0\A)„›5 5½¼25 ª A(match)A1
0
½½†A
0
' '(match)†A
1
A„0½¼2 ª A1„A ª (3†A)„›5 5½¼25 ª A(match)A1
0
½½†A
0
' '(match)†A
1