Hi,

Isn’t it a convention that a null character vector behaves the same as a
null numeric vector in an arithmetic context?

I get the following results in J

$$ 2 2 #: i. 0

2

$$ 2 2 #: ''

1


Yet in APL,  of course…


      ⍴⍴2 2 ⊤''

2

      ⍴⍴2 2 ⊤⍳0

2



This seems somewhat unhelpful.


Regards,

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

Reply via email to