0 : 0
I'd like to get would like to get the same result
for each pair of cases i. & ii., a) & b)
AIM: same result regardless of rank 1 or rank 2.
      >= rank 3 is not defined.
)

NB. i)
   0 _1&{ (1 2 3 4 5)
1 5
NB. ii)
   0 _1&{ (1 2 3 4 5,: 6 7 8 9 10)
1 2 3 4  5
6 7 8 9 10

NB. a)
   ({.L:0) (1 2 3 4 5)
1
NB. b)
   ({.L:0) (1 2 3 4 5,: 6 7 8 9 10)
1 2 3 4 5
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to