Hello Steven

How about this?

   $ 2 2(<@|:;. _3 )A    NB. a bit big for e-display
1 29

NB. so, only show the first few elements
   5{."(1)   2 2(<@|:;. _3 )A
+-----+-----+-----+-----+-----+
|0 100|1 101|2 102|3 103|4 104|
|1 101|2 102|3 103|4 104|5 105|
+-----+-----+-----+-----+-----+
  
Mike

Steven Taylor wrote:
> Hi,
>
> How do I do this with a cut?
>
>    A=.(i.30) ,: (100 + i.30)
>    2 <\ |: A
>
>
>
> Dan gave this example:
>
>   3 3 <;._3 i. 4 4
>
>       +--------+--------+
>       |0 1  2  |1  2  3 |
>       |4 5  6  |5  6  7 |
>       |8 9 10  |9 10 11 |
>       +--------+--------+
>       | 4  5  6| 5  6  7|
>       | 8  9 10| 9 10 11|
>       |12 13 14|13 14 15|
>       +--------+--------+
>
>
> I'm having trouble understanding the J dictionary on this reading
>
>
> Thanks,
>
> --Steven
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to