>From Ric:
>... if I was interested in better performance I'd use something more like this
>to take advantage of special code for +//.
> ([: <"0 {. +//. >@{:)
Here I agree with you.
But some beginners may not be alert to what +&.>/ is doing.
In this example the 1 : 0 formulation adds little:
ric=: ('') 1 : 0
a=. [: > {:
b=. {. +//. a
res=. [: <"0 b
res f.
)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm