Roger Hui <[EMAIL PROTECTED]> wrote: > ([: +/ *:) 1 2 3 4 5 > 55 > cap=: [: > (cap +/ *:) 1 2 3 4 5 > 55
Sorry abou that. I seem to distinctly remember this not working, but just re-checked it, and it works on every version of J that I have (from 406d to 602), so my memory must be faulty. However, if you use double indirection cap =: [ cap2 =: cap (cap2 +/ *:) i. 5 this works in J 6 but fails in J 4 and 5. Was this change ever documented? -- Mark D. Niemiec <[EMAIL PROTECTED]> ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
