The definition of /. has a nice feature for
gerunds:

   x m/.y applies successive verbs from the gerund 
   m to the collections of y, extending m cyclically as required.

If there were such adverb that simply
applied items of the gerund to items of argument
extending it cyclically, that zigzag would be trivial.

Suppose, such adverb is m"n, which for gerund m
applies its items to cells of rank n of the argument.
Then result would be

   ]`|."1 i.5 6



----- Original Message ----
From: Roger Hui <[EMAIL PROTECTED]>
To: Programming forum <[email protected]>
Sent: Sunday, November 26, 2006 3:27:41 AM
Subject: Re: [Jprogramming] zig-zag order


0 A. y is the identity function on y and _1 A. y 
reverses y .  A. may be more convenient in some 
situations than the <@|.`</. construct.  For example, 
the following is a different kind of zigzag order:

   ($&0 [EMAIL PROTECTED] A."_1 i.) 5 6
0  1  2  3  4  5
11 10  9  8  7  6
12 13 14 15 16 17
23 22 21 20 19 18
24 25 26 27 28 29


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


 
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to