As Devon pointed out, I accidentally transposed the arguments to i.
when I posted. Other than that, the function works. Yours is much more
compact of course. I wish I knew why yours works without the extra ,
and ~. and mine doesn't. They seem to take the same time and space, so
I'm puzzled overall.
On Feb 5, 2008, at 8:50 AM, Raul Miller wrote:
I do not get your posted answer. I get
f c
30 31 32 33 34 35 36 37 38 39 40
Also, I think maybe you were looking for
~.@,@:(+/)/ c
--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm