On 1/3/08, Yuvaraj Athur Raghuvir <[EMAIL PROTECTED]> 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
(_1{::[)` (<@}:@[)` ]
is a noun, representing a list of three verbs. You can read more
about the specifics of this construction at
http://www.jsoftware.com/help/dictionary/d530n.htm
(The right hand side of that page, and the following page, since I
was using the } derived verb as a dyad.)
Also, you can read more about ` at
http://www.jsoftware.com/help/dictionary/d610.htm
However, basically,
(1;2;3) (_1{::[)` (<@}:@[)` ] } 10+i.4 4
is equivalent to
updatee=:4 :0
new=. _1 {:: x
ind=. <}:x
new ind} y
)
(1;2;3) updatee 10+i.4 4
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm