Actually, I meant to write:

   {.@#:@(,:  2 * >./@,@:|)i:2
1 1 0
1 1 1
0 0 0
0 0 1
0 1 0

But this would work just as well, as a model:

   {.@#:@(,:  2 * |)i:2
1 1 0
1 1 1
0 0 0
0 0 1
0 1 0

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

Reply via email to