On Thu, Nov 12, 2015 at 8:47 PM, Kip Murray <[email protected]> wrote:
> Note also
>
>    (i. 2 3) ,.&.|: i. 4 3
> 0  1  2
> 3  4  5
> 0  1  2
> 3  4  5
> 6  7  8
> 9 10 11

I think more useful is

   >,&.>/ mx
0  1  2
3  4  5
0  1  2
3  4  5
6  7  8
9 10 11

which works fine, but can be inefficient for very long input lists
because it has to copy too much, which is the reason why we have the
Raze primitive.

-- Ambrus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to