I'll take a look at my printed copy when I get home but wouldn't be
surprised if it's the same as on the website.

Playing around with it, I came up with

mxp=: ([: C. 0 ; <:)@([: (,~ >:@|.)@>:@+:@i. -:)

which seems to accomplish what is described: "...takes a positive even
integer as argument and yields a list which is a permutation of the integers
from 0 through one less than the argument."

On Fri, Mar 27, 2009 at 4:41 PM, Sherlock, Ric <[email protected]>wrote:

> > From: Devon McCormick
> > It's on the Vector website:
> > http://www.vector.org.uk/archive/v113/mcdonnell113_111.htm .
>
> Thanks Devon that has the same version of mxp as in the Word source given
> as part of the project, but I wonder if perhaps this version was created
> after the printed Vector & whether some errors crept in at that stage. So if
> someone could check the printed version in Vector 11.3 I'd appreciate it.
>
> Of course it could be that there have been changes in J which explain the
> problems with the mxp shown on that page.
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to