I wrote:
>          diag1  =:   =@/:*]$~2##
>  There may be a shorter way to express  ]$~2##  .

Ah, ok, now we're getting somewhere:

           diag2  =:   =@/:*##,:

-Dan

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

Reply via email to