John Kerl on Sun, 14 Nov 2004 04:57:15 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Lists and residue classes


Re the second, do you mean something other than:

	n = 11;
	v=vector(n);
	for(i=0,n-1,v[i+1]=Mod(i,n));

?



Justin Walker <justin@mac.com> wrote:

> Hi, all,
>
> Two (unrelated) questions:
>
> - is there a way to remove an element from a list (t_LIST)?  Pawing 
> through the user's guide didn't provide an explicit answer.
>
> - is there a quick way to produce the reduced residue classes modulo a 
> given integer?  Again, the user's guide appeared to provide no clue.
>
> Regards,
>
> Justin
>
> --
> Justin C. Walker, Curmudgeon-At-Large  *
> Institute for General Semantics        |   If you're not confused,
>                                         |   You're not paying attention
> *--------------------------------------*-------------------------------*