Consider:

   #:i:2
1 0
1 1
0 0
0 1
1 0

   {.@#:@(,: 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