[Jprogramming] Ranks of left and right arguments (continued)
Henry Rich
HenryHRich at nc.rr.com
Sun Mar 24 17:57:03 UTC 2013
17 24 35 (+ i.)"0 (5)
17 18 19 20 21
24 25 26 27 28
35 36 37 38 39
17 24 35 +"0 1 i. 5
17 18 19 20 21
24 25 26 27 28
35 36 37 38 39
Henry Rich
On 3/24/2013 1:52 PM, Alex Giannakopoulos wrote:
> Thanks to everyone who helped me sort out the "rotations" noun using |. " 0
> _ ]
>
> Further to this I have the following problem:
> I want to make an array of N rows, all starting at arbitrary values, each
> being a simple incremental sequence. So I can do this, for example by
> specifying the arbitrary values in the left argument.
> (17 24 35) + i. "0 0] 5 5 5
> 17 18 19 20 21
> 24 25 26 27 28
> 35 36 37 38 39
>
> As you see I have specified the right argument for *each* case, although
> this is not really necessary, since it's always the same.
> Is there a way to specify it only once?
> I thought i. " 0 _ ] might work, but no luck there.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list