>   while. (-.q)*.(u <= l)  do.
it should be this instead:
>   while. (-.q)*.(u <: l)  do.

Heh, that's embarrassing. 

>    q =.(a{~ n - (l * (s - 1)) - u) ~: a{~ (n -(l * s)- u)
should instead say
>    q =.(a{~ (n - (l * (s - 1))) - u) ~: a{~ ((n - (l * s)) - u)

Yeah, I wasn't really sure about order of execution of C, and I didn't feel
like looking it up.  No precedence was one of Ken's most insightful
innovations.

-Dan

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

Reply via email to