Ric wrote:
>  Both nouns and conjunctions seemed to cause it to fail.

Henry reponded:
>  Yes, ;: doesn't produce a gerund if the words aren't verbs.

Actually, the problem is specifically anonymous nouns; everything else is
fine.  This is because the atomic (gerundial) representation of both
primitives and user definitions is simply their (formal) name, boxed. 
This isn't true of anonymous nouns (obviously).

And even the noun problem can be fixed:

           tstr =: '* ,: 2&[EMAIL PROTECTED]'

           Nc   =:  3 : ('y=.+1 :y';'nc<''y''')&>
           gn   =:  (,'0')&(,&< ".)&.>~
           
           3 4 5 ( (gn 0 = Nc) ;:tstr)`:6 (7 2 4)
        21 8 20
         9 4  6

Of course, this doesn't address the original question of simplicity, but
that's been answered already.  Speaking of which:

Oleg wrote:
>  ts=: 1 : '] 1 : m'

Ric responded:
>  That form will be very useful. Thanks.

If you're a tacit fan, you might also like:

    http://www.jsoftware.com/pipermail/programming/2007-November/008816.html

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

Reply via email to