I also though about the cut conjunction, but it's not so easy.
I made as far as this cubersome zigzag using transpose
|:,./('';1) ]`|.;.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
I was hoping this would work
1 (<`(<@|.));._3 i.5 6
|nonce error
| 1 (<`(<@|.));._3 i.5 6
1 <;._3 i.5 6
+-----------------+
|0 1 2 3 4 5 |
+-----------------+
|6 7 8 9 10 11 |
+-----------------+
|12 13 14 15 16 17|
+-----------------+
|18 19 20 21 22 23|
+-----------------+
|24 25 26 27 28 29|
+-----------------+
--- Roger Hui <[EMAIL PROTECTED]> wrote:
> m"n already has a meaning and in that meaning
> ]`|."1 i.5 6 has value 5#,:(]`|.)
>
>
>
> ----- Original Message -----
> From: Oleg Kobchenko <[EMAIL PROTECTED]>
> Date: Sunday, November 26, 2006 1:29 am
> Subject: Re: [Jprogramming] zig-zag order
>
> > 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
>
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm