typo in the newLISP manual? (pop)

Q&A's, tips, howto's

typo in the newLISP manual? (pop)

Postby ghyll » Tue Sep 09, 2014 6:58 pm

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!
Posts: 14
Joined: Mon Jul 14, 2014 1:15 am

Re: typo in the newLISP manual? (pop)

Postby Lutz » Thu Sep 11, 2014 2:14 pm

Thanks for the correction, online here: http://www.newlisp.org/downloads/newlisp_manual.html .

Normally corrections are posted in the first topics group, but I welcome them in any place ;-)
Posts: 5279
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California

Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 1 guest