Raul Miller wrote:
>  Nevertheless, I am tempted to carry this a bit further:
>   +`*`+/4 3 2 1
>  13

FYI, / with a gerund argument will extend that argument cylicly as required
[1], so you could shorten this to:

           +`*/4 3 2 1
        13
           
-Dan

[1]  Vocab page for / :  

        m/y inserts successive verbs from the gerund m between items of y, 
        extending m cyclically as required. Thus, +`*/i.6 is 0+1*2+3*4+5 .

        http://www.jsoftware.com/help/dictionary/d420.htm


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

Reply via email to