Expression

   m$/:;<@|.`</.i.m=.,~4
0  1  5  6
2  4  7 12
3  8 11 13
9 10 14 15

Tacit

   ($ [: /:@; [: <@|.`</. i.)@,~ 4
0  1  5  6
2  4  7 12
3  8 11 13
9 10 14 15

Note: rank of @ vs @:

----- Original Message ----
From: Dan Bron <[EMAIL PROTECTED]>
To: Programming forum <[email protected]>
Sent: Saturday, November 25, 2006 11:09:14 AM
Subject: RE: [Jprogramming] zig-zag order


Stealing eesuk's  /:  idea (clever!) and merging it with my own:

    zz2 =:  ($ $ [: /:@:; <@:|.`</.)@:i.@:,~

-Dan

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


 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to