[Jprogramming] reshaping array
Chris Burke
cburke at jsoftware.com
Thu Feb 8 11:14:21 HKT 2007
Sherlock, Ric wrote:
> Thanks for the answers, I'll add this to my study material
> By the way Chris' answer doesn't work in its current form when the array
> is boxed. Good exercise for me to see if I can work out why!
a=: <@>100+i.4
b=: <@>21+i.5
c=: <@>i.4 5
(>,{a;<b),.,c
+---+--+--+
|100|21|0 |
+---+--+--+
|100|22|1 |
+---+--+--+
|100|23|2 |
+---+--+--+
|100|24|3 |
+---+--+--+
...
More information about the Programming
mailing list