Here's code I'm trying to understand. Is there some path to take to make
this easier?

 

 i=:([: i. [: # [)`([: ;/ [)`]} 

   5!:4 <'i'             

            -- [:      
            +- i.      
        ----+     -- [:
        │   L-----+- # 
        │         L- [ 
-- } ---+   -- [:      
        +---+- / --- ; 
        │   L- [       
        L- ]           

   S

4 4
0 2
3 4
2 2
0 0
0 3

   G

0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

   S i G

4 0 1 5 0
0 0 0 0 0
0 0 3 0 0
0 0 0 0 2
0 0 0 0 0

   

   load 'debug/dissect'

   dissect 'S i G' 

 

Linda

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

Reply via email to