bob therriault wrote:
>  I have not found any primitives that have a built in rank of _1 (items).

For several reasons, you won't see any primitives with an explicit rank of _1.  
For one thing,  f"(-N)  is really  f"(-N)"_  which
would mess with @ and other functional calculus.

So verbs with unbounded rank are good suspects for "item users".  Consider:

        ~. y         Unique items
        ~: y         Unique items (as boolean mask)
        =  y         Self-classify items
        ,. y         Ravel items of y

        x -. y       Exclude items of x that are cells of y
        x i. y  x i: y  x I. y  Index of items of x in y

        ;:           Parse items of y   
        {. {: }. }:  Take/drop items of y
        A. C.        Permutations of items of y
        e.           Membership in [opened] items of y
        #            Count/filter items of y

But it's not just verbs with are item-oriented.  Consider:

        u/ y         Dyad u between items of y 
        u;.n y       Cut items of y
        u/.y         Classify items of y
        
        x u/. y      Classify items of y
                        
        /: \:        Grade/sort the items of y
        u\y u\.      Affixes of the items of y  

And it gets stranger yet.  Consider:

        m`:3 y       Insert items of m between items of y cyclically (m/ y)
        f...@g f&g f&.g Apply f to each "item" of g
        (indirect)=.y Assign names to items     
                
Items, items, everywhere, nor any _1 to rank.

-Dan


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

Reply via email to