NB. Write a function to number the rows of its argument.
NB. Example: `a' is an n-dimensional numerical array.
   ]a =. i.3#2
0 1
2 3

4 5
6 7

NB.    NumberRows a
NB. 0 0 1
NB. 1 2 3
NB.
NB. 2 4 5
NB. 3 6 7
NB.
NB. I created this pretty length error:   (i.*/}:$a),"0 _1 a


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

Reply via email to