M=:   (i.11);(11+i.11);22+i.11
   a=.1 0 0 1 1 0 2 2 0 1 0
   a{"_1|:>M
11 1 2 14 15 5 28 29 8 20 10
   a=.1 2  0 1 2 0 2 2 0 1 0
   a{"_1|:>M
11 23 2 14 26 5 28 29 8 20 10

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

Reply via email to