On Fri, Jan 16, 2009 at 5:58 AM, Viktor Cerovski
<[email protected]> wrote:
> insf works only partially correctly:

Thank you for finding my mistake.

This problem can be avoided by changing the definition of insv
ed=: (0&|:@) (^:(#...@$))  NB. use structural verb u on each dimension
insv=: }.ed@([:>[: 1 0&|:@#&.>/ 1 ; <@] ,~ ((1 j. (= i.))&.> $)) 1&, ed

But it would probably be better if I did not try to code so generally.
The generality I had been aiming for here does not have any use
that I know of.

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

Reply via email to