John Randall wrote: > You're right. I think it may depend on the exact form of the exponent > (e.g. if it is i.n or something like it rather than n1 n2 n3... for random > integers) but I cannot see why. > >
Sorry: this is wrong too. Funning a few test cases suggests (a) There is a mysterious extra evaluation. (b) For f^:(n0 n1 n2 n3 ....nn) y, f gets evaluated an additional number of times equal to the maximum of n0,...,nn, regardless of the side effects. I think ^: is really designed for pure functions. Best wishes, John ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
