Also, for the first row whether rank one or two:
({:@${.,) i. 3 3
0 1 2
({:@${.,) i. 3
0 1 2
NB. select first n items from the ravelled array, where n is the last item
in the arrays shape
NB. which is a column (rank 2) or the length of a single row (rank 1)
Nothing earth shattering, but hopefully these comments are useful.
Thanks for bringing my attention to leaf.
--Steven
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm