I will modify the document, but it is very easy for the J user 
to detect whether or not the operation is done in place.

   NB. in place
   a=: i.1e5
   7!:2 'a,123'
524992
   7!:2 'a=: a,123'
768

   NB. in place

   a=: o. i.1e5

   7!:2 'a,123'

1049344

   7!:2 'a=: a,123'

832

   NB. not in place

   a=: 1e5 $ <123

   7!:2 'a,<123'

525056

   7!:2 'a=: a,<123'

525120


   NB. not in place

   a=: i.10^5x
   7!:2 'a,123'
525120
   7!:2 'a=: a,123'
525184
   


----- Original Message -----
From: "Sherlock, Ric" <[EMAIL PROTECTED]>
Date: Thursday, November 20, 2008 16:37
Subject: RE: [Jprogramming] Project Euler Problem 216
To: Programming forum <[email protected]>

> ---Roger Hui wrote:
> > In this case front vs. back makes no difference because
> > append-in-place does not support boxed arrays.
> 
> It would be good to mention this exception in this essay:
> http://www.jsoftware.com/jwiki/Essays/In-Place_Operations


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

Reply via email to