typo in the newLISP manual?

Q&A's, tips, howto's

typo in the newLISP manual?

Postby ghyll » Thu Aug 21, 2014 3:51 am

I think I found a typo in one of the code snippets in the ref function section of the newLISP manual.

Code: Select all
; get index vectors for list elements
(set 'pList '(a b (c d (x) e)))
(ref 'x pList)    → (2 2 0)
(ref '(x) pList)   → (2 2)
; the key expression is in a variable
(set 'p '(c d (x) e))
(ref p pList p)     → (2)


(ref p pList p) should instead be (ref p pList)
ghyll
 
Posts: 14
Joined: Mon Jul 14, 2014 1:15 am

Re: typo in the newLISP manual?

Postby Lutz » Thu Aug 21, 2014 4:23 am

Thanks for the correction!
Lutz
 
Posts: 5276
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

cron