Or something like this?

    [n =. i. 2 2 2
0 1
2 3

4 5
6 7
   ,./ n
0 1 4 5
2 3 6 7
  ($ $ (,@,./)) n
0 1
4 5

2 3
6 7

Cheers, bob


> On Sep 6, 2023, at 14:49, 'robert therriault' via Programming 
> <programm...@jsoftware.com> wrote:
> 
> Hi Piet,
> 
> Maybe show us what you would want to do with higher dimensions? Or a less 
> symmetric 2 dimensional shape?
> 
> For shape 2 2, I would use the even simpler
> 
>    |: m
> 0 2
> 1 3
> 
> Hope this helps.
> 
> Cheers, bob
> 
>> On Sep 6, 2023, at 14:26, Brian Schott <schott.br...@gmail.com> wrote:
>> 
>> ,./0 1 {"1  m
> 
> ----------------------------------------------------------------------
> 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