not even 3[1] is good of even (3)[1] it has to be (,3)l1] it has to be an ARRAY so the index can work
if this behavior is changed to do what apl2 has then this is no longer apl - remember apl goes right to left On Wed, 15 Feb 2017 14:44:18 -0600 Xiao-Yong Jin <jinxiaoy...@gmail.com> wrote: > ISO/IEC 13751:2000(E) disagrees. > On page 158, section 10.2.14 Indexed Reference, > there is an example > 1 2 3[2] > 2 > > > On Feb 15, 2017, at 2:22 PM, Juergen Sauermann > > <juergen.sauerm...@t-online.de> wrote: > > > > Hi Xiao-Yong, > > > > IBM APL2. > > > > [] binds stronger than anything else. > > > > Thus 3[1 2] is evaluated first, giving the RANK ERROR. > > > > /// Jürgen > > > > > > On 02/15/2017 09:14 PM, Xiao-Yong Jin wrote: > >> Feature or bug? > >> > >> 1 2 3[2 1 3] > >> RANK ERROR > >> 1 2 3[2 1 3] > >> ^^ > >> )sic > >> (1 2 3)[2 1 3] > >> 2 1 3 > >> > >> > >> > >> > > > >