because (_&,~) is not the same as ,&_   You meant _&(,~)

Henry Rich

Roger Hui wrote:
> "out of memory" is the correct behavior for
> (_&,~)^:2 x=: (8 12$2 8 2#_ _1 _), as it is for (_&,~) x 
> or for (3&,~) _ 
> 
> 
> 
> ----- Original Message -----
> From: David Ward Lambert <[email protected]>
> Date: Wednesday, February 3, 2010 18:02
> Subject: [Jgeneral] Expression runs too long.   Possibly a bug?
> To: [email protected]
> 
>> $ nice /usr/local/j64-602/bin/j
>>    NB. Goal: append two rows of _ to an array
>>    NB. Result: consumes all memory
>>    (_&,~)^:2(8 12$2 8 2#_ _1 _)
>>
>>
>> Following correct expression works.
>> I had forgotten I can bond x or y.
>> Bonding x combined with argument swapping looks perverse.
>>
>>    (,&_)^:2(8 12$2 8 2#_ _1 _)
>>
>> Thanks,
>> Dave.
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to