Page 1 of 1

typo in the newLISP manual?

Posted: Thu Aug 21, 2014 3:51 am
by ghyll
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)

Re: typo in the newLISP manual?

Posted: Thu Aug 21, 2014 4:23 am
by Lutz
Thanks for the correction!