Here's something I have not understood for a long time:   g is the result I
want
 
H is not the result I want
    g=: 13 :'>: ((],-)i.)<: y'
   
   h=: 13 :'>: ((y,-)i.)<: y'

In both cases  y and ] in this example seem to be  5
   
   g 5
1 2 3 4 5 4 3 2
   
   h 5
6 5 4 3 2

   5!:4 <'g'
  -- [:              
  +- >:              
  │    -- [:         
--+    │         -- ]
  │    │    -----+- ,
  L----+----+    L- -
       │    L- i.    
       L- <:         
   
   
   5!:4 <'h'
      -- 3                   
-- : -+- ,:'>: ((y,-)i.)<: y'
   

How can you tell when you should be using  ]  instead of  y  ?

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

Reply via email to