"Devon McCormick" <[EMAIL PROTECTED]> wrote:
Re: [Jgeneral] A. Rank bug

> I get the same behavior (using dex "]" instead of lev "[" which is probably
> what
> you meant though the results are the same(?)).

Actually, '[' and ']' are called 'left' and 'right';
'[.' and '].' were corresponding conjunections called 'lev' and 'dex',
but which were removed in J 5.

The monads are identical, so using one over the other is a
matter of personal taste. Intellectually, I suppose that I
ought to prefer ] (which has the aesthetically appealing
property that it copies the left parameter, regardless of
whether a right paramater exists); however I find that I
use [ by instinct for some reason.

This is somewhat similar to C where one can write
  for (i=0; i<10; ++i) or
  for (i=0; i<10; i++)

> Interestingly enough:
>   (A."0)"0]5 0
> 0 0
> as you would expect.

I strongly suspect that the bug I found has to do with
integrated rank support. It is likely that u"m"n never
gets optimized, so it would avoid bugs of this kind.

-- Mark D. Niemiec <[EMAIL PROTECTED]>

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

Reply via email to