;@:(<@f) could be improved. I can prove it by rewriting it
using ;.1 :
r =. 1000000$1
ts ';@:(<@(i."0)) r'
1.67969 1.48678e8
ts '1&(;@:(<@([EMAIL PROTECTED]);.1)) r'
1.28072 7.64864e7
(;@:(<@i."0) -: 1&(;@:(<@([EMAIL PROTECTED]);.1))) r
1
The extra space is taken by boxing overhead, I think,
because if r is 10000$100 the space required by the
two forms is similar.
I would be content to use the longer workaround, except
that the {. , which is required to convert the single-item
partition from a list of items to a single item, is ugly.
Henry Rich
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm