Newbie question: Howto remove only first element from a list
Subject: Newbie question: Howto remove only first element from a list
From: andre maute
Date: Fri, 25 Apr 2008 16:26:53 +0200
On Friday 25 April 2008, Raymond Toy (RT/EUS) wrote:
> 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.
I'm sorry, I have missed this in the documentation :-(
Andre