Raul, can you explain how the amend gets applied and the result
assembled? I need help in understanding the use of ` here.
Thanks,
Yuva
On 02/01/2008, Raul Miller <[EMAIL PROTECTED]> wrote:
> On 1/2/08, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have a 2-D array T. I want a verb update as follows:
> > (i;j;val) update T
> >
> > The result is that the table T is updated with the value val at the
> location
> > (i;j)
>
> update=: (_1{::[)` (<@}:@[)` ] }
> (1;2;3) update 10+i.4 4
> 10 11 12 13
> 14 15 3 17
> 18 19 20 21
> 22 23 24 25
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm