I should have added that I'm new to J (and this list),
so of course I don't yet grasp the why, just the typo.
;-)
Cheers,
-Dan
On 24 Feb 2011, at 19:53, Dan T. Abell wrote:
> Do you see the typo now?
> ]op =: (i. 2 0 4) ; (i. 0 2) ; ,6
> ]op =: (i. 2 0 4) ; (i. 0 2) ; 6
>
> -Dan
>
> On 24 Feb 2011, at 19:45, Don Guinn wrote:
>
>> Testing the lab "An Introductory Course in J" and noticed that the result
>> was not the same in J6 and J7. Chapter 9 Section 10:
>>
>> J6 result:
>>
>> ]op =: (i. 2 0 4) ; (i. 0 2) ; ,6
>> ┌────┬──┬─┐
>> │ │ │6│
>> └────┴──┴─┘
>> ;op NB. Result of raze
>> 0 0 0 0
>>
>> 0 0 0 0
>>
>> 0 0 0 0
>>
>> 6 0 0 0
>> $ ;op NB. The shape of the empty result
>> 4 1 4
>>
>> J7 Result:
>>
>> ]op =: (i. 2 0 4) ; (i. 0 2) ; 6 NB. The operand
>> ┌────┬──┬─┐
>> │ │ │6│
>> └────┴──┴─┘
>> ;op NB. Result of raze
>> $ ;op NB. The shape of the empty result
>> 4 0 4
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm