On Nov 16, 2007 4:27 PM, metaperl.j <[EMAIL PROTECTED]> wrote:
> Well, my question is more like: "how do you get this:
>
>   C. <3 1
> 0 3 2 1
>
> when you are not in the position of having standard cycle representation?

>From Roger's hint, I would guess using an algorithm something like:
   C=: C.@((] <"[EMAIL PROTECTED] 1 [EMAIL PROTECTED] >./)@; , ])

For example
   (C -: C.) <3?10
1
    (C -: C.) 1 0 0 1 0 <;.1]5 ?20
1

FYI,

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

Reply via email to