to cover scalars too,

 2,&(,:^:(2>#@$)^:_)4 
2 
4 


 2,&(,:^:(2>#@$)^:_)4 3 
2 0 
4 3 




----- Original Message -----
From: Raul Miller <[email protected]>
To: Programming forum <[email protected]>
Cc: 
Sent: Saturday, July 18, 2015 8:21 PM
Subject: Re: [Jprogramming] row puzzle

Or
   row=:, ,:^:(2>#@$)

-- 
Raul

On Sat, Jul 18, 2015 at 8:15 PM, Roger Hui <[email protected]> wrote:
>    row=: ,&(,:^:(1=#@$))
>
>    1 2 row 3 4
> 1 2
> 3 4
>    1 2 row 3 4 row 5 6
> 1 2
> 3 4
> 5 6
>    (1 2 row 3 4) row 5 6
> 1 2
> 3 4
> 5 6
>    (1 2 row 3 4) row 5 6 row 7 8
> 1 2
> 3 4
> 5 6
> 7 8
>
>
>
>
> On Sat, Jul 18, 2015 at 5:04 PM, Kip Murray <[email protected]> wrote:
>
>> Write a verb row so that
>>
>>     1 2 row 3 4
>>  1 2
>>  3 4
>>     1 2 row 3 4 row 5 6
>>  1 2
>>  3 4
>>  5 6
>>     (1 2 row 3 4) row 5 6
>>  1 2
>>  3 4
>>  5 6
>>     (1 2 row 3 4) row 5 6 row 7 8
>>  1 2
>>  3 4
>>  5 6
>>  7 8
>>
>> --Kip Murray
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm

>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
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