Hmm...

G=:a.i.S=:/:~x
is faster.

But while s-:S, g and G are different.

So I'm drawing a blank here, on how to make the grade.

Thanks,

-- 
Raul



On Wed, Mar 5, 2014 at 1:52 PM, Roger Hui <rogerhui.can...@gmail.com> wrote:

> Suppose x is a long vector of characters and you need both its sort and its
> grade.  Can you do it faster than s=: x{~g=: /:x ?
>
> Posed this way, the answer is of course yes.  But how, and why is it
> faster?
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to