Your "simple adverb" upd is almost identical to the solution
([:> [: f&.>/\.&.|. <@],<"[EMAIL PROTECTED])
I suggested. I would have appreciated if you have mentioned this.
"It uses ideas from several of the contributions" seems rather inadequate to
me.
R.E. Boss
-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens Fraser Jackson
Verzonden: zondag 14 mei 2006 1:31
Aan: Programming forum
Onderwerp: Re: [Jprogramming] 2 f 3 f 4 f m
Thanks to all the contributors to this thread, esp. Dan Bron.
(....)
The remainder of this post just summarises my comparisons using information
from the thread:
Note 'An update adverb'
The following adverb seems to do precisely what is required. It
uses ideas from several of the contributions. It uses suffix to exploit
calculation order
)
upd =: 1 : 0
:
|. u&.> /\. (|. <"_1 x),<y
)
(...)
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm