Thanks Raul, interesting example of {:: (something I overlook) but not as easy to digest for me as the Amend solution of Ric and Henry.

.../Rob

On 18/09/2008, at 10:51 PM, Raul Miller wrote:

...

But it can.
...
 modify exrplc;exinds;exdata
 4    6 8 6 5    8
 6    6 6 9 3    2
 3 1000 9 2 7    0

 9    5 7 7 9    7
 4    8 7 4 2 1001
1002    0 4 3 9    3
 modify
2&({::) + ([EMAIL PROTECTED]@(2&({::)) e. $@(2&({::)) #. 1&({::)) ([EMAIL 
PROTECTED] $ ,@[ #^:_1
]) 0&({::) - 2&({::) {~ <"1@(1&({::))

(If you are really interested in this approach you should also examine
the results of the
other verbs I defined, against the example argument I supplied for modify).

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to