A slightly more gentle approach to the problem solved as Pascal gave is to use the magical `13 :` construct as shown below; force the first 2 steps into just one line and call the argument y .
a=.(>&6) (2+i.9) a# (2+i.9) 7 8 9 10 13 : 'a#y[a=.(>&6) y' NB. 13 : produces a tacit result when it can >&6 # ] (>&6 # ]) 2+i.9 7 8 9 10 -- (B=) ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
