up previous next
remove

remove an object in a list

Syntax
remove(Ref V:LIST, N:INT):NULL

where V is a variable containing a list.

Description
This function removes the N-th component from L. (The function WithoutNth returns the list obtained by removing the N-th component of L without affecting L, itself.)

Example
/**/  Use R ::= QQ[x,y,z];
/**/  L := indets(R);
/**/  L;
[x, y, z]

/**/  remove(Ref L,2);
/**/  L;
[x, z]

See Also