I see the same anomaly for the "i.7" argument on J 9.02.03 under Windows 10:
   test1=: 0:`1:`2: @. (3&|)
   test1 &.> i.&.> >:i.6
+-+---+-----+-------+---------+-----------+
|0|0 1|0 1 2|0 1 2 0|0 1 2 0 1|0 1 2 0 1 2|
+-+---+-----+-------+---------+-----------+
   test1 i.7
|rank error: test1
|test1[0]
      dbr 1 [ dbr 0
   test1 i.100
|rank error: test1
|test1[0]

But defining "test1" with scalar rank does not exhibit this behavior:
   test1=: 0:`1:`2: @. (3&|)"0
   test1&.>i.&.>7+i.3
+-------------+---------------+-----------------+
|0 1 2 0 1 2 0|0 1 2 0 1 2 0 1|0 1 2 0 1 2 0 1 2|
+-------------+---------------+-----------------+


On Sun, Jun 7, 2020 at 10:39 AM Hauke Rehr <[email protected]> wrote:

> test1 i.6
> doesn’t work for me either
>
> but both
> test1"0 i.6
> and
> test1"0 i.7
> do work as expected
>
> Am 07.06.20 um 16:35 schrieb çağlar girit:
> > Hi,
> >
> > Although I have read NuVoc entries for Agenda and Constant Function, I
> > still don't understand why for "test1 =. 0: ` 1: ` 2: @. (3&|)", "test1
> i.
> > 6" works whereas "test2 i.7" gives a rank error.  Am I missing some
> > subtlety of implied rank with Agenda?
> >
> >    test1 =. 0: ` 1: ` 2: @. (3&|)
> >    test1 i.6
> > 0 1 2 0 1 2
> >     test1 i.7
> > |rank error: test1
> > |       test1 i.7
> >
> > Thanks!
> >
> >
>
> --
> ----------------------
> mail written using NEO
> neo-layout.org
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>


-- 

Devon McCormick, CFA

Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to