Newbie question: Howto remove only first element from a list



Robert Dodier wrote:
> On 4/25/08, Raymond Toy (RT/EUS) <raymond.toy at ericsson.com> wrote:
> 
>>  Yes, I figure that from reading the documentation.  But look at what it
>>  says:
>>
>>  (%i3) ? rest
>>
>>   -- Function: rest (<expr>)
>>       Returns <expr> with its first <n> elements removed if <n> is
> 
> It looks like the index is messed up --- the text should include
> the previous line which says rest(expr, n).
> 
> What do you get if you enter
> 
> ? save
> 
> Do you get several varieties of save(foo) or just one?

Just one:

  -- Function: save (<filename>, <name_1>=<expr_1>, <name_2>=<expr_2>,
           ...)
      Stores the current values of <name_1>, <name_2>, <name_3>, ..., in

> 
>>  I think it would be better to say something like
>>
>>   -- Function: rest (<expr>[, <n>])
>>
>>  to make it clear that there's an optional argument allowed.
> 
> This is a tangential issue, but: there is ambiguity here because some

Agreed.  If all the variants are given, there's no need for this.

Not sure what's going on.  I'm doing this with the CVS version using 
maxima-local, instead of installing maxima somewhere.

Ray