> Am 05.10.2020 um 10:32 schrieb Robert Pluim <rpl...@gmail.com>:
>
>>>>>> On Mon, 5 Oct 2020 10:08:08 +0200, Axel Kielhorn
>>>>>> <org-m...@axelkielhorn.de> said:
>
> From the docstring:
>>> Return the last link of LIST. Its car is the last element.
>
> Axel> But I get:
> Axel> Wrong type argument: stringp, ("30 $“)
>
> You need to do (car (last …))
So =first= returns an element, but =last= returns a list.
I get it.
> If N is non-nil, return the Nth-to-last link of LIST.
I was interpreting link as element and didn’t look at the docstring.
> and you'll want some calls to 'string-to-number', since
>
> (string< "30 $" "127 $")
> => nil
Yes, I know. But I wanted to keep the change as minimal as possible.
Thanks for you help, my example is working now.
Greetings Axel