NB. defining
  f=: 3 : 0
if.(*/y)>25 do.
 z=.y
else.
 z=.i.0
end.
)
  NB. and defining
  ]a=.3 3$5 10 2 1 2 3 10 15 20
5 10  2
1  2  3
10 15 20
  f"1 a
5 10  2
0  0  0
10 15 20

Is there any neat (?tacit) way of deleting the 2nd row in the (f"1 a) call?
I understand why it's there & can write a del_zero_rows verb, but
wonder if there's a neater way...
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to