Higher-order arrays in q.

Why is 
q)(5 3 3)#1  displayed as follows?

q)(5 3 3)#1

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1

1 1 1 1 1 1 1 1 1

Shouldn’t it be as follows ?

1 1 1

1 1 1

1 1 1

     

1 1 1

1 1 1

1 1 1

     

1 1 1

1 1 1

1 1 1

     

1 1 1

1 1 1

1 1 1

     

1 1 1

1 1 1

1 1 1

How does one interpret the output from q? 

Another example :

q)(4 2 2)#1

1 1 1 1

1 1 1 1

1 1 1 1

1 1 1 1

Shouldn’t it be :

1 1

1 1

   

1 1

1 1

   

1 1

1 1

   

1 1

1 1 

? - Please clarify. 

Thanks, 

Kumar

| "" | Virus-free. www.avast.com |

I wouldn’t rely on the default console output to see structure, e.g. 

q)1                                                                                                                             

1

q)enlist 1                                                                                                                      

,1

q)enlist enlist 1                                                                                                               

1

Use 0N! to see structure:

q)0N!(5 3 3)#1;                                                                                                                 

((1 1 1;1 1 1;1 1 1);(1 1 1;1 1 1;1 1 1);(1 1 1;1 1 1;1 1 1);(1 1 1;1 1 1;1 1 1);(1 1 1;1 1 1;1 1 1))