9 !: 14 ''
j701/beta/2010-03-31/11:40
      
      1 0 2 (+/ @: *)  (3 2 $ 3 1 2 1 1 0)
7 3
      
      NB. This result is wrong, surely. 
      
      NB. The correct result is 5 1, shown by replacing +
      NB. with an equivalent verb, say  +"0 0  . 
      
      1 0 2 ((+"0 0) / @: *)  (3 2 $ 3 1 2 1 1 0)
5 1
   
      NB. In J504, both of the above expressions give
      NB. the same result,  5 1
      
   
      NB. This has been mentioned before, firstly in a posting by 
      NB. Patrick Van Beek, with similar example.
   

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

Reply via email to