June Kim wrote: > [quote] > Is (? 3 2 $ 10) +"1 2 (i. 3 2 4) a legal expression? > What would be the answer if a plain + is used instead? > [/quote] > > So I thought n in the reshape problem would be given as valid > number(s) for the rank conjunction. Would there be any n that is valid > for rank conjunction but results in an invalid operation for the > reshape?
Note that (? 3 2 $ 10) +"1 (i. 3 2 4) is not a legal expression. Perhaps it's also worth noting that +"0 _/~ ^/~i:1000 is likely to cause an error (with the current implementations of J on currently available machines). However, for 3 2 4 $"n 'abc' there are only five cases, corresponding to 3 2 4 $"0.1 'abc' NB. error 3 2 4 $"0 0 'abc' 3 2 4 $"0 1 'abc' 3 2 4 $"1 0 'abc' 3 2 4 $"1 1 'abc' The first case is meant to represent all invalid arguments to ", while the other cases create different results by virtue of their treatment of the structure of the arguments to the derived verb. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
