Page 1 of 1

typo in the newLISP manual? (pop)

Posted: Tue Sep 09, 2014 6:58 pm
by ghyll
I think I found a typo in the pop function section of the newLISP manual.

Code: Select all

(set 'pList '((f g) a b c "hello" d e 10))
(pop pList)  → (f g)
(pop pList)  → a
pList        → (b c "hello" d e 10)
(pop pList 3)    → d
(pop pList 100)  → 10

Code: Select all

(pop pList 100)
produces an invalid index error. The line should probably read

Code: Select all

(pop pList 4)    → 10

Code: Select all

(pop pList -1)    → 10
Is there a better place to post this? Thank you!

Re: typo in the newLISP manual? (pop)

Posted: Thu Sep 11, 2014 2:14 pm
by Lutz
Thanks for the correction, online here: .

Normally corrections are posted in the first topics group, but I welcome them in any place ;-)