last element of the list



Hiisi a ?crit :
> Dear Maxima Community!
> I need to access the last element of the list returned by 'allroots'
> function. I have to to it for many equations with different number of
> roots, so I can't just use brackets [] each time. My current solution
> is to walk through the list in cycle and assign element values to some
> variable. Example:
> for x in roots do
> 	l: x,
> After that l will have value of the last element. I think there should
> be better solution. I just can't find it using doc manuals/
> Thanks in advance!
>   
last(l);
returns the last element of l.

Eric