[Maxima] Newbie question: Howto remove only first element from a list

Raymond Toy (RT/EUS) raymond.toy at ericsson.com
Fri Apr 25 09:18:42 CDT 2008


andre maute wrote:
> What is the command to remove only the first element from a list?
> 
> (%i2) a : [1,2,3,4,1];
> (%o2) [1,2,3,4,1]
> (%i3) delete(1,a);
> (%o3) [2,3,4]

rest(a) -> [2,3,4,1]

Hmm.  I see there's a bug in the documentation for rest.  It refers to 
<n>, but it's not one of the parameters to rest.

Ray


More information about the Maxima mailing list