It finally occurred to me, months after the "rank with cyclic gerund"
discussions, that J already has a cyclic gerund definition, in u;.3

However, testing it, I get a nonce error for the gerund case:

   (,.1 1) <;.3] i.4
┌─┬─┬─┬─┐
│0│1│2│3│
└─┴─┴─┴─┘
   (,.1 1) +:`-:;.3] i.4
|nonce error

We even have the obvious simplification for the non-gerund case:

   1 <;.3] i.4
┌─┬─┬─┬─┐
│0│1│2│3│
└─┴─┴─┴─┘

I've not investigated the source code yet, behind that nonce error,
I'm just leaving this here to give me a chance of remembering it,
later.

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to