Is
   row=:, ,.&.|:

beautiful enough?

Thanks,

-- 
Raul

On Sat, Jul 18, 2015 at 8:17 PM, Henry Rich <[email protected]> wrote:
> The straightforward version:
>
>    row =. ,&(,:^:(2 > #@$))
>
> The shorter but ugly (and slower) version:
>
>    row =. ;@,&:(<@,:"1)
>
> The beautiful but slowest version:
>
>    row =. ,&.:(<"1)
>
> Henry Rich
>
> On 7/18/2015 8:04 PM, Kip Murray wrote:
>>
>>     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
>
> ----------------------------------------------------------------------
> 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