Newbie question: Howto remove only first element from a list
Subject: Newbie question: Howto remove only first element from a list
From: Raymond Toy (RT/EUS)
Date: Fri, 25 Apr 2008 10:18:42 -0400
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