The reason 0 is showing up is because the result of (,7) -. 11 is (,7)
(that is, its length is one). The result of (,7) -. (,7) is forced to
conform with that result. Its length is increased so that it will fit into the
result array (all J arrays are rectangular). The added length is created by
padding with 0 , the fill element for numeric arrays.
The effect is the same as >'';,7 . I believe what you're after is ;'';7
. If that's the case, use
; (,7) <@-./"_ 0 ] 7 11
7
or
; (<,7) -./&.> 7 11
7
instead. If that's not what you're after, what result do you want or expect
from the expression?
-Dan
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm