IIRC you can have expressions for x and m, so more than
'the most simple' sentences are allowed.

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of david alis
> Sent: Tuesday, January 08, 2008 11:28 AM
> To: Programming forum
> Subject: [Jprogramming] Re: Update a 2-D array in-place?
> 
> On 1/3/08, Yuvaraj Athur Raghuvir <yuvaraj.a.r at gmail.com> wrote:
> > Raul, can you explain how the amend gets applied and the result
> > assembled? I need help in understanding  the use of ` here.
> > >    update=: (_1{::[)` (<@}:@[)` ] }
> > >    (1;2;3) update 10+i.4 4
> 
> Combining } with a gerund such as update is a nice use of J notation.
> 
> However the current implementation appears not to support 
> update-in-place
> for anything other than the most simple expressions involving }
> 
>    abc=.?1e6$100
>    amend =.}
>    7!:2'abc =. 1(22) amend abc'
> 4195712
>    7!:2'abc =. 1(22) } abc'  NB. space used is minimal
> 1216
> 
> Which is a pity.
> ----------------------------------------------------------------------
> 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