[Jprogramming] Ranks of left and right arguments (continued)
Ric Sherlock
tikkanz at gmail.com
Sun Mar 24 19:15:54 UTC 2013
Table (Dyadic insert) can also be useful here:
17 24 35 +/ i. 5
On Mon, Mar 25, 2013 at 6:57 AM, Henry Rich <HenryHRich at nc.rr.com> wrote:
> 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
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list