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

Reply via email to