On 6/11/07, John Randall <[EMAIL PROTECTED]> wrote:
For some reason I have a blind spot with amend.
I think the issue is that i} becomes a verb, so rank
is useless against indices.
If amend were v a} i the solution would be obvious.
As a first cut, you could use
amend=:1 :(':';'x y} m')
v a amend"0 i
That said, how large do these arrays get? (Perhaps amend
will wind up slow enough (without special code) to make
some arithmetic techniques plausible? Or perhaps the
size of a will in those cases be large enough to make this
a moot point -- since you still have to pay for making a
copy of a for each v and i, regardless of any parsing
overhead.)
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm