>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.

The 1 : 0 formulation here adds little clarity:
ric=: ('') 1 : 0
   a=. [: > {:
   b=. {. +//. a
   res=. [: <"0 b
   res  f.      
)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to