Here's how I might approach this partitioning problem:

bounds=:0, [: >. [: +/\ [ # [EMAIL PROTECTED] % [
parts=:] </.~ [: (# [EMAIL PROTECTED]) 2 -~/\ bounds

   4 parts i. 10
+-----+---+-----+---+
|0 1 2|3 4|5 6 7|8 9|
+-----+---+-----+---+

-- 
Raul


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

Reply via email to