> From: Roger Hui
> 
> > Incidentally, {.&> doesn't save anymore brackets than {."0
> 
> Counterexample:
> 
> x{.&>1!:1<'file'
> x{."(0)1!:1<'file'
> x{."0]1!:1<'file'
> 

I should have been more specific - I was referring to its use in the code 
quoted by Gary:

Gary Ng wrote:
> > That is what puzzled me. This is the original code I came
> > across :
> > 
> > (,|....@}:)(,.|....@}:"1)({.&>~#{.i:@#)(65}.a.)(>:@i.{.[)'E'
> > 
> > from http://www.craigmurphy.com/blog/?p=1417#comment-66863
> > 
> > It does save a pair of '()' but that seems to be not a good
> > practice as it doesn't use the 'primary' functionality of '>'
> > which is to unbox

   (,|....@}:)(,.|....@}:"1)({."0~#{.i:@#)(65}.a.)(>:@i.{.[)'E'
    A    
   B B   
  C   C  
 D     D 
E       E
 D     D 
  C   C  
   B B   
    A    

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

Reply via email to