Thanks Rob. You know, it is just today that I found out that doing arithmetic operation with infinity will result in infinity. :)
You learn something new everday. :) r/Alex -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hodgkinson Sent: Thursday, September 18, 2008 5:43 PM To: Programming forum Subject: Re: [Jprogramming] Applying Amend on each row An alternative is also the approach to 'add infinity where 0 = temp') ... rplc0byInf =: [ + _&* @ (0&=) rplc0byInf temp 5 7 _ _ _ 3 6 _ 5 4 But this doesn't address your general Amend / Tacit query like Ric's solution... .../Rob Hodgkinson On 18/09/2008, at 6:44 PM, Alex Rufon wrote: > > ... > As you can see, this works: > [temp=. 2 5 ? 10 > 5 7 0 0 0 > 3 6 0 5 4 > _ amendEachZero temp > 5 7 _ _ _ > 3 6 _ 5 4 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
